@@ -49,7 +49,7 @@ class TestBlockElements(unittest.TestCase):
|
||||
self.assertEqual(paragraph.word_count, 2)
|
||||
|
||||
# Test word iteration
|
||||
words = list(paragraph.words())
|
||||
words = list(paragraph.words_iter())
|
||||
self.assertEqual(len(words), 2)
|
||||
self.assertEqual(words[0][1].text, "Hello")
|
||||
self.assertEqual(words[1][1].text, "World")
|
||||
|
||||
Reference in New Issue
Block a user