[Zope3-checkins] CVS: Zope3/src/zope/xmlpickle/tests - test_xmlpickle.py:1.6

Jim Fulton jim at zope.com
Sun Sep 21 13:32:13 EDT 2003


Update of /cvs-repository/Zope3/src/zope/xmlpickle/tests
In directory cvs.zope.org:/tmp/cvs-serv14034/src/zope/xmlpickle/tests

Modified Files:
	test_xmlpickle.py 
Log Message:
Changed the way objects are xml-pickled to handle parent references.


=== Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py 1.5 => 1.6 ===
--- Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py:1.5	Tue May  6 15:58:45 2003
+++ Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py	Sun Sep 21 13:32:12 2003
@@ -91,10 +91,20 @@
             self.__test(-v)
 
     def test_None(self):
-        self.__test(None)
+        self.__test(None,
+                    '<?xml version="1.0" encoding="utf-8" ?>\n'
+                    '<pickle> <none/> </pickle>\n'
+                    )
 
-    def test_reduce(self):
+    def test_True(self):
+        self.__test(True)
+        self.assertEqual(loads('<pickle><true/></pickle>'), True)
+
+    def test_False(self):
+        self.__test(False)
+        self.assertEqual(loads('<pickle><false/></pickle>'), False)
 
+    def test_reduce(self):
         v = DictSub()
         v['spam'] = 1.23
         v['eggs'] = 0




More information about the Zope3-Checkins mailing list