Server provides a shutdown method.
(self)
| 281 | self.assertIsInstance(server.fileno(), int) |
| 282 | |
| 283 | def test_shutdown(self): |
| 284 | """Server provides a shutdown method.""" |
| 285 | with run_server() as server: |
| 286 | server.shutdown() |
| 287 | # Check that the server socket is closed. |
| 288 | with self.assertRaises(OSError): |
| 289 | server.socket.accept() |
| 290 | |
| 291 | def test_handshake_fails(self): |
| 292 | """Server receives connection from client but the handshake fails.""" |
nothing calls this directly
no test coverage detected