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

Method test_raw

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

Source from the content-addressed store, hash-verified

1171 self.assertEqual(codecs.escape_decode(bytearray()), (b"", 0))
1172
1173 def test_raw(self):
1174 decode = codecs.escape_decode
1175 for b in range(256):
1176 b = bytes([b])
1177 if b != b'\\':
1178 self.assertEqual(decode(b + b'0'), (b + b'0', 2))
1179
1180 def test_escape(self):
1181 decode = codecs.escape_decode

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected