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

Function test_prepare_chunked_no_length

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

Source from the content-addressed store, hash-verified

324
325
326def test_prepare_chunked_no_length(transport):
327 msg = protocol.Response(transport, 200)
328
329 chunked = msg._write_chunked_payload = mock.Mock()
330 chunked.return_value = iter([1, 2, 3])
331
332 msg.send_headers()
333 assert chunked.called
334
335
336def test_prepare_eof(transport):

Callers

nothing calls this directly

Calls 1

send_headersMethod · 0.80

Tested by

no test coverage detected