Server receives connection from client over a Unix socket.
(self)
| 364 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
| 365 | class UnixServerTests(EvalShellMixin, unittest.TestCase): |
| 366 | def test_connection(self): |
| 367 | """Server receives connection from client over a Unix socket.""" |
| 368 | with temp_unix_socket_path() as path: |
| 369 | with run_unix_server(path): |
| 370 | with unix_connect(path) as client: |
| 371 | self.assertEval(client, "ws.protocol.state.name", "OPEN") |
| 372 | |
| 373 | |
| 374 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
nothing calls this directly
no test coverage detected