MCPcopy Index your code
hub / github.com/python/cpython / test_keys_reuse

Method test_keys_reuse

Lib/test/test_json/test_decode.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.assertIs(b, d)
102
103 def test_keys_reuse(self):
104 s = '[{"a_key": 1, "b_\xe9": 2}, {"a_key": 3, "b_\xe9": 4}]'
105 self.check_keys_reuse(s, self.loads)
106 decoder = self.json.decoder.JSONDecoder()
107 self.check_keys_reuse(s, decoder.decode)
108 self.assertFalse(decoder.memo)
109
110 def test_extra_data(self):
111 s = '[1, 2, 3]5'

Callers

nothing calls this directly

Calls 2

check_keys_reuseMethod · 0.95
assertFalseMethod · 0.80

Tested by

no test coverage detected