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

Method test_encoding5

simplejson/tests/test_unicode.py:34–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self.assertEqual(j, '["\\u03b1\\u03a9"]')
33
34 def test_encoding5(self):
35 u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
36 j = json.dumps(u, ensure_ascii=False)
37 self.assertEqual(j, u'"' + u + u'"')
38
39 def test_encoding6(self):
40 u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.80

Tested by

no test coverage detected