diff emeraldtree/tests/test_ElementTree.py @ 38:6e38bcef6030

ElementTree - Make iterators return all childs
author Bastian Blank <bblank@thinkmo.de>
date Mon, 14 Jul 2008 15:25:30 +0200
parents 7b5ed8600569
children a8382b8cded5
line wrap: on
line diff
--- a/emeraldtree/tests/test_ElementTree.py	Mon Jul 14 15:03:10 2008 +0200
+++ b/emeraldtree/tests/test_ElementTree.py	Mon Jul 14 15:25:30 2008 +0200
@@ -156,15 +156,15 @@
 
     elem.append('b')
     l = list(elem.iter())
-    assert len(l) == 1
+    assert len(l) == 2
 
     elem.append(Element('c'))
     l = list(elem.iter())
-    assert len(l) == 2
+    assert len(l) == 3
 
     elem.append('d')
     l = list(elem.iter())
-    assert len(l) == 2
+    assert len(l) == 4
 
 def test_Element_itertext():
     elem = Element('a')