Server receives connection from client over a Unix socket.
(self)
| 589 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
| 590 | class UnixServerTests(EvalShellMixin, unittest.IsolatedAsyncioTestCase): |
| 591 | async def test_connection(self): |
| 592 | """Server receives connection from client over a Unix socket.""" |
| 593 | with temp_unix_socket_path() as path: |
| 594 | async with unix_serve(handler, path): |
| 595 | async with unix_connect(path) as client: |
| 596 | await self.assertEval(client, "ws.protocol.state.name", "OPEN") |
| 597 | |
| 598 | |
| 599 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
nothing calls this directly
no test coverage detected