Beispiel #1
0
 def test_json_deserialization(self):
     """Test that the JSON deserializer returns the expected hashable
     objects."""
     assert utils.json_decode('["foo", ["bar", "baz"], 12, null, ' "[], false]") == (
         "foo",
         ("bar", "baz"),
         12,
         None,
         (),
         False,
     )
 def test_json_deserialization(self):
     """Test that the JSON deserializer returns the expected hashable
     objects."""
     assert (utils.json_decode('["foo", ["bar", "baz"], 12, null, '
                               '[], false]') ==
             ('foo', ('bar', 'baz'), 12, None, (), False))