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

Function test_release

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

Source from the content-addressed store, hash-verified

107
108
109def test_release(connector, key, protocol, loop) -> None:
110 conn = Connection(connector, key, protocol, loop)
111 assert not conn.closed
112 conn.release()
113 assert not protocol.transport.close.called
114 assert conn._protocol is None
115 connector._release.assert_called_with(key, protocol)
116 assert conn.closed
117
118
119def test_release_proto_should_close(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…