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

Class TestStrSubclass

simplejson/tests/test_str_subclass.py:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 return self.__class__('not what you wanted!')
10
11class TestStrSubclass(TestCase):
12 def test_dump_load(self):
13 for s in ['', '"hello"', 'text', u'\u005c']:
14 self.assertEqual(
15 s,
16 simplejson.loads(simplejson.dumps(WonkyTextSubclass(s))))
17
18 self.assertEqual(
19 s,
20 simplejson.loads(simplejson.dumps(WonkyTextSubclass(s),
21 ensure_ascii=False)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…