Exemplo n.º 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,
     )
Exemplo n.º 2
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))