| 9 | return self.__class__('not what you wanted!') |
| 10 | |
| 11 | class 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))) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…