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

Method test_array_hook_none

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

Source from the content-addressed store, hash-verified

144 self.assertIsInstance(item, tuple)
145
146 def test_array_hook_none(self):
147 # array_hook=None should behave like no hook
148 result = json.loads('[1, 2]', array_hook=None)
149 self.assertEqual(result, [1, 2])
150 self.assertIsInstance(result, list)
151
152 def test_trailing_comma_unexpected_data(self):
153 # Matches CPython's test_unexpected_data for trailing commas

Callers

nothing calls this directly

Calls 1

loadsMethod · 0.80

Tested by

no test coverage detected