diff tests/unit.py @ 42:75886253ee73

test deserialization
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 11:07:51 -0700
parents 1bd4ddf2e81d
children f09982d47b3c
line wrap: on
line diff
--- a/tests/unit.py	Tue Mar 27 10:51:34 2012 -0700
+++ b/tests/unit.py	Tue Mar 27 11:07:51 2012 -0700
@@ -64,6 +64,12 @@
         self.assertTrue(os.path.exists(filename))
         serialized = json.loads(file(filename).read())
         self.assertEqual(serialized, config)
+
+        # deserialize
+        deserialized = example.deserialize(filename)
+        self.assertEqual(deserialized, config)
+
+        # cleanup
         if os.path.exists(filename):
             os.remove(filename)