# HG changeset patch # User Jeff Hammel # Date 1332871671 25200 # Node ID 75886253ee7371a6f3c911a8fbe8b3674dc4d906 # Parent 1bd4ddf2e81d6c9b9a0e7ad35cb06d9ada987279 test deserialization diff -r 1bd4ddf2e81d -r 75886253ee73 tests/unit.py --- 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)