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

Function test_ctor_charset

tests/test_web_response.py:731–735  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729
730
731def test_ctor_charset():
732 resp = Response(text='текст', charset='koi8-r')
733
734 assert 'текст'.encode('koi8-r') == resp.body
735 assert 'koi8-r' == resp.charset
736
737
738def test_ctor_charset_default_utf8():

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected