MCPcopy
hub / github.com/aio-libs/aiohttp / test_set_text_with_charset

Function test_set_text_with_charset

tests/test_web_response.py:875–883  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

873
874
875def test_set_text_with_charset():
876 resp = Response()
877 resp.content_type = 'text/plain'
878 resp.charset = "KOI8-R"
879 resp.text = "текст"
880
881 assert "текст" == resp.text
882 assert "текст".encode('koi8-r') == resp.body
883 assert "koi8-r" == resp.charset
884
885
886def test_started_when_not_started():

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected