MCPcopy
hub / github.com/encode/httpx / test_encoded

Function test_encoded

tests/test_utils.py:25–28  ·  view source on GitHub ↗
(encoding)

Source from the content-addressed store, hash-verified

23 ),
24)
25def test_encoded(encoding):
26 content = '{"abc": 123}'.encode(encoding)
27 response = httpx.Response(200, content=content)
28 assert response.json() == {"abc": 123}
29
30
31def test_bad_utf_like_encoding():

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.95

Tested by

no test coverage detected