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

Method test_array_hook_empty

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

Source from the content-addressed store, hash-verified

121 self.assertIsInstance(result, tuple)
122
123 def test_array_hook_empty(self):
124 result = json.loads('[]', array_hook=tuple)
125 self.assertEqual(result, ())
126 self.assertIsInstance(result, tuple)
127
128 def test_array_hook_nested_in_object(self):
129 result = json.loads('{"a": [1, 2]}', array_hook=tuple)

Callers

nothing calls this directly

Calls 1

loadsMethod · 0.80

Tested by

no test coverage detected