[Lxml-checkins] r35201 - lxml/trunk/src/lxml/tests
scoder at codespeak.net
scoder at codespeak.net
Fri Dec 1 14:32:34 CET 2006
Author: scoder
Date: Fri Dec 1 14:32:32 2006
New Revision: 35201
Modified:
lxml/trunk/src/lxml/tests/test_objectify.py
Log:
rewrote test case to check Element identity instead of equality
Modified: lxml/trunk/src/lxml/tests/test_objectify.py
==============================================================================
--- lxml/trunk/src/lxml/tests/test_objectify.py (original)
+++ lxml/trunk/src/lxml/tests/test_objectify.py Fri Dec 1 14:32:32 2006
@@ -214,8 +214,7 @@
self.assertEquals(1, len(root.findall("c")))
self.assertEquals(2, len(root.findall(".//c")))
self.assertEquals(3, len(root.findall(".//b")))
- self.assertEquals(root.findall(".//b")[:2],
- root.getchildren()[:2])
+ self.assert_(root.findall(".//b")[1] is root.getchildren()[1])
def test_findall_ns(self):
XML = self.XML
More information about the lxml-checkins
mailing list