(connector, key, protocol, loop)
| 117 | |
| 118 | |
| 119 | def 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 | |
| 130 | def test_release_released(connector, key, protocol, loop) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…