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

Method test_encoded

tests/test_utils.py:422–424  ·  view source on GitHub ↗
(self, encoding)

Source from the content-addressed store, hash-verified

420 ),
421 )
422 def test_encoded(self, encoding):
423 data = "{}".encode(encoding)
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

Callers

nothing calls this directly

Calls 1

guess_json_utfFunction · 0.90

Tested by

no test coverage detected