Client connects to server.
(self)
| 59 | |
| 60 | class ClientTests(unittest.IsolatedAsyncioTestCase): |
| 61 | async def test_connection(self): |
| 62 | """Client connects to server.""" |
| 63 | async with serve(*args) as server: |
| 64 | async with connect(get_uri(server)) as client: |
| 65 | self.assertEqual(client.protocol.state.name, "OPEN") |
| 66 | |
| 67 | async def test_explicit_host_port(self): |
| 68 | """Client connects using an explicit host / port.""" |