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

Method test_encoding3

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

Source from the content-addressed store, hash-verified

22 self.assertEqual(ju, js)
23
24 def test_encoding3(self):
25 u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
26 j = json.dumps(u)
27 self.assertEqual(j, '"\\u03b1\\u03a9"')
28
29 def test_encoding4(self):
30 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