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

Method test_encoding4

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

Source from the content-addressed store, hash-verified

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}'
31 j = json.dumps([u])
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}'

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.80

Tested by

no test coverage detected