MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_unicode

Method test_unicode

Lib/test/pickletester.py:2822–2831  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2820 self.assertIs(x.state[0], x)
2821
2822 def test_unicode(self):
2823 endcases = ['', '<\\u>', '<\\\u1234>', '<\n>',
2824 '<\\>', '<\\\U00012345>',
2825 # surrogates
2826 '<\udc80>']
2827 for proto in protocols:
2828 for u in endcases:
2829 p = self.dumps(u, proto)
2830 u2 = self.loads(p)
2831 self.assert_is_copy(u, u2)
2832
2833 def test_unicode_high_plane(self):
2834 t = '\U00012345'

Callers

nothing calls this directly

Calls 3

assert_is_copyMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected