Client connects to server over a Unix socket.
(self)
| 599 | @unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets") |
| 600 | class UnixClientTests(unittest.TestCase): |
| 601 | def test_connection(self): |
| 602 | """Client connects to server over a Unix socket.""" |
| 603 | with temp_unix_socket_path() as path: |
| 604 | with run_unix_server(path): |
| 605 | with unix_connect(path) as client: |
| 606 | self.assertEqual(client.protocol.state.name, "OPEN") |
| 607 | |
| 608 | def test_set_host_header(self): |
| 609 | """Client sets the Host header to the host in the WebSocket URI.""" |
nothing calls this directly
no test coverage detected