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

Fred L. Drake, Jr. fred at zope.com
Thu Sep 11 17:55:31 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	test_xmlpickle.py 
Log Message:
add support for True and False

=== Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py 1.5 => 1.5.28.1 ===
--- 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	Thu Sep 11 16:55:30 2003
@@ -91,10 +91,24 @@
             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,
+                    '<?xml version="1.0" encoding="utf-8" ?>\n'
+                    '<pickle> <true/> </pickle>\n'
+                    )
+
+    def test_False(self):
+        self.__test(False,
+                    '<?xml version="1.0" encoding="utf-8" ?>\n'
+                    '<pickle> <false/> </pickle>\n'
+                    )
 
+    def test_reduce(self):
         v = DictSub()
         v['spam'] = 1.23
         v['eggs'] = 0




More information about the Zope3-Checkins mailing list