Esempio n. 1
0
    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)
Esempio n. 2
0
 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)
Esempio n. 3
0
    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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)