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

Function test_add_header

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

Source from the content-addressed store, hash-verified

86
87
88def test_add_header(transport):
89 msg = protocol.Response(transport, 200)
90 assert [] == list(msg.headers)
91
92 msg.add_header('content-type', 'plain/html')
93 assert [('CONTENT-TYPE', 'plain/html')] == list(msg.headers.items())
94
95
96def test_add_header_with_spaces(transport):

Callers

nothing calls this directly

Calls 1

add_headerMethod · 0.80

Tested by

no test coverage detected