MCPcopy
hub / github.com/psf/requests / test_bad_utf_like_encoding

Method test_bad_utf_like_encoding

tests/test_utils.py:426–427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

424 assert guess_json_utf(data) == encoding
425
426 def test_bad_utf_like_encoding(self):
427 assert guess_json_utf(b"\x00\x00\x00\x00") is None
428
429 @pytest.mark.parametrize(
430 ("encoding", "expected"),

Callers

nothing calls this directly

Calls 1

guess_json_utfFunction · 0.90

Tested by

no test coverage detected