Client connects to server over a Unix socket.
(self)
| 852 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
| 853 | class UnixClientTests(unittest.IsolatedAsyncioTestCase): |
| 854 | async def test_connection(self): |
| 855 | """Client connects to server over a Unix socket.""" |
| 856 | with temp_unix_socket_path() as path: |
| 857 | async with unix_serve(handler, path): |
| 858 | async with unix_connect(path) as client: |
| 859 | self.assertEqual(client.protocol.state.name, "OPEN") |
| 860 | |
| 861 | async def test_set_host_header(self): |
| 862 | """Client sets the Host header to the host in the WebSocket URI.""" |
nothing calls this directly
no test coverage detected