MCPcopy Index your code
hub / github.com/python/cpython / test_raw_decode

Method test_raw_decode

Lib/test/test_codecs.py:2786–2789  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2784 self.assertEqual(encode(chr(b)), (bytes([b]), 1))
2785
2786 def test_raw_decode(self):
2787 decode = codecs.raw_unicode_escape_decode
2788 for b in range(256):
2789 self.assertEqual(decode(bytes([b]) + b'0'), (chr(b) + '0', 2))
2790
2791 def test_escape_encode(self):
2792 encode = codecs.raw_unicode_escape_encode

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected