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

Method test_empty_strings

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

Source from the content-addressed store, hash-verified

73 self.check_keys_reuse(s, json.loads)
74
75 def test_empty_strings(self):
76 self.assertEqual(json.loads('""'), "")
77 self.assertEqual(json.loads(u'""'), u"")
78 self.assertEqual(json.loads('[""]'), [""])
79 self.assertEqual(json.loads(u'[""]'), [u""])
80
81 def test_raw_decode(self):
82 cls = json.decoder.JSONDecoder

Callers

nothing calls this directly

Calls 1

loadsMethod · 0.80

Tested by

no test coverage detected