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

Function test_add_headers_length

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

Source from the content-addressed store, hash-verified

129
130
131def test_add_headers_length(transport):
132 msg = protocol.Response(transport, 200)
133 assert msg.length is None
134
135 msg.add_headers(('content-length', '42'))
136 assert 42 == msg.length
137
138
139def test_add_headers_upgrade(transport):

Callers

nothing calls this directly

Calls 1

add_headersMethod · 0.80

Tested by

no test coverage detected