[Lxml-checkins] r46066 - lxml/trunk/src/lxml/tests
scoder at codespeak.net
scoder at codespeak.net
Tue Aug 28 08:33:15 CEST 2007
Author: scoder
Date: Tue Aug 28 08:33:14 2007
New Revision: 46066
Modified:
lxml/trunk/src/lxml/tests/test_objectify.py
Log:
changed objectify bool test case to reflect type persistance change
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 Tue Aug 28 08:33:14 2007
@@ -539,13 +539,13 @@
Element = self.Element
SubElement = self.etree.SubElement
root = Element("{objectified}root")
- root.bool = 'true'
- self.assert_(isinstance(root.bool, objectify.BoolElement))
+ root.bool = True
self.assertEquals(root.bool, True)
-
- root.bool = 'false'
self.assert_(isinstance(root.bool, objectify.BoolElement))
+
+ root.bool = False
self.assertEquals(root.bool, False)
+ self.assert_(isinstance(root.bool, objectify.BoolElement))
def test_data_element_bool(self):
value = objectify.DataElement(True)
More information about the lxml-checkins
mailing list