MCPcopy Create free account
hub / github.com/apify/impit / test_response_headers_explicit_encoding

Function test_response_headers_explicit_encoding

impit-python/test/response_test.py:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_response_headers_explicit_encoding() -> None:
52 response = Response(200, content=b'\xa6\xcd\xd0\xa6\xd4\x20\xd2\xd5\xcc\xc5\xd3', default_encoding='koi8-u')
53
54 assert response.text == 'імпіт рулес'
55 assert response.content == b'\xa6\xcd\xd0\xa6\xd4 \xd2\xd5\xcc\xc5\xd3'
56
57
58@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…