MCPcopy Create free account
hub / github.com/simplejson/simplejson / test_empty_objects

Method test_empty_objects

simplejson/tests/test_decode.py:36–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.assertEqual(rval, {"key":"value", "k":"v"})
35
36 def test_empty_objects(self):
37 s = '{}'
38 self.assertEqual(json.loads(s), eval(s))
39 s = '[]'
40 self.assertEqual(json.loads(s), eval(s))
41 s = '""'
42 self.assertEqual(json.loads(s), eval(s))
43
44 def test_object_pairs_hook(self):
45 s = '{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}'

Callers

nothing calls this directly

Calls 1

loadsMethod · 0.80

Tested by

no test coverage detected