Пример #1
0
    def test_open_connection_no_loop_ssl(self):
        with test_utils.run_test_server(use_ssl=True) as httpd:
            conn_fut = asyncio.open_connection(
                *httpd.address,
                ssl=test_utils.dummy_ssl_context(),
                loop=self.loop)

            self._basetest_open_connection_no_loop_ssl(conn_fut)
Пример #2
0
    def test_open_connection_no_loop_ssl(self):
        with test_utils.run_test_server(use_ssl=True) as httpd:
            conn_fut = asyncio.open_connection(
                *httpd.address,
                ssl=test_utils.dummy_ssl_context(),
                loop=self.loop)

            self._basetest_open_connection_no_loop_ssl(conn_fut)
Пример #3
0
 def test_open_connection(self):
     with test_utils.run_test_server() as httpd:
         conn_fut = asyncio.open_connection(*httpd.address, loop=self.loop)
         self._basetest_open_connection(conn_fut)
Пример #4
0
 def test_open_connection(self):
     with test_utils.run_test_server() as httpd:
         conn_fut = asyncio.open_connection(*httpd.address,
                                            loop=self.loop)
         self._basetest_open_connection(conn_fut)