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

Function test_add_header_non_ascii

tests/test_protocol.py:104–109  ·  view source on GitHub ↗
(transport)

Source from the content-addressed store, hash-verified

102
103
104def test_add_header_non_ascii(transport):
105 msg = protocol.Response(transport, 200)
106 assert [] == list(msg.headers)
107
108 with pytest.raises(AssertionError):
109 msg.add_header('тип-контента', 'текст/плейн')
110
111
112def test_add_header_invalid_value_type(transport):

Callers

nothing calls this directly

Calls 1

add_headerMethod · 0.80

Tested by

no test coverage detected