implement bool serialization

This commit is contained in:
Philipp Moritz
2016-06-03 12:25:12 -07:00
parent 37bd590656
commit 9a36e4208e
3 changed files with 23 additions and 1 deletions
+4
View File
@@ -41,6 +41,10 @@ class SerializationTest(unittest.TestCase):
self.roundTripTest(w, None)
self.roundTripTest(w, (None, None))
self.roundTripTest(w, ("hello", None))
self.roundTripTest(w, True)
self.roundTripTest(w, False)
self.roundTripTest(w, (True, False))
self.roundTripTest(w, {True: "hello", False: "world"})
self.roundTripTest(w, {"hello" : "world", 1: 42, 1.0: 45})
self.roundTripTest(w, {})