def test_open_unix_connection_no_loop_ssl(self): with test_utils.run_test_unix_server(use_ssl=True) as httpd: conn_fut = asyncio.open_unix_connection( httpd.address, ssl=test_utils.dummy_ssl_context(), server_hostname='', loop=self.loop) self._basetest_open_connection_no_loop_ssl(conn_fut)
def client(path): reader, writer = yield From( asyncio.open_unix_connection(path, loop=self.loop)) # send a line writer.write(b"hello world!\n") # read it back msgback = yield From(reader.readline()) writer.close() raise Return(msgback)
def client(path): reader, writer = yield From(asyncio.open_unix_connection( path, loop=self.loop)) # send a line writer.write(b"hello world!\n") # read it back msgback = yield From(reader.readline()) writer.close() raise Return(msgback)
def test_open_unix_connection(self): with test_utils.run_test_unix_server() as httpd: conn_fut = asyncio.open_unix_connection(httpd.address, loop=self.loop) self._basetest_open_connection(conn_fut)