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

Function test_release_proto_should_close

tests/test_client_connection.py:119–127  ·  view source on GitHub ↗
(connector, key, protocol, loop)

Source from the content-addressed store, hash-verified

117
118
119def test_release_proto_should_close(connector, key, protocol, loop) -> None:
120 protocol.should_close = True
121 conn = Connection(connector, key, protocol, loop)
122 assert not conn.closed
123 conn.release()
124 assert not protocol.transport.close.called
125 assert conn._protocol is None
126 connector._release.assert_called_with(key, protocol)
127 assert conn.closed
128
129
130def test_release_released(connector, key, protocol, loop) -> None:

Callers

nothing calls this directly

Calls 2

releaseMethod · 0.95
ConnectionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…