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

Function test_add_header_with_spaces

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

Source from the content-addressed store, hash-verified

94
95
96def test_add_header_with_spaces(transport):
97 msg = protocol.Response(transport, 200)
98 assert [] == list(msg.headers)
99
100 msg.add_header('content-type', ' plain/html ')
101 assert [('CONTENT-TYPE', 'plain/html')] == list(msg.headers.items())
102
103
104def test_add_header_non_ascii(transport):

Callers

nothing calls this directly

Calls 1

add_headerMethod · 0.80

Tested by

no test coverage detected