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

Function test_prepare_eof

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

Source from the content-addressed store, hash-verified

334
335
336def test_prepare_eof(transport):
337 msg = protocol.Response(transport, 200, http_version=(1, 0))
338
339 eof = msg._write_eof_payload = mock.Mock()
340 eof.return_value = iter([1, 2, 3])
341
342 msg.send_headers()
343 assert eof.called
344
345
346def test_write_auto_send_headers(transport):

Callers

nothing calls this directly

Calls 1

send_headersMethod · 0.80

Tested by

no test coverage detected