Test connection closing.
(self)
| 115 | assert before + 5 <= conn.timeout <= after + 5 |
| 116 | |
| 117 | def test_tconn_close(self): |
| 118 | """Test connection closing.""" |
| 119 | cfg = Config() |
| 120 | sock = FakeSocket() |
| 121 | |
| 122 | conn = gthread.TConn(cfg, sock, ('127.0.0.1', 12345), ('127.0.0.1', 8000)) |
| 123 | conn.close() |
| 124 | |
| 125 | assert sock.closed is True |
| 126 | |
| 127 | |
| 128 | class TestPollableMethodQueue: |
nothing calls this directly
no test coverage detected