MCPcopy
hub / github.com/rspeer/python-ftfy / test_guess_bytes_null

Function test_guess_bytes_null

tests/test_bytes.py:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_guess_bytes_null():
31 bowdlerized_null = b"null\xc0\x80separated"
32 result_str, result_encoding = guess_bytes(bowdlerized_null)
33 assert result_str == "null\x00separated"
34 assert result_encoding == "utf-8-variants"
35
36
37def test_incomplete_sequences():

Callers

nothing calls this directly

Calls 1

guess_bytesFunction · 0.90

Tested by

no test coverage detected