示例#1
0
文件: ftp.py 项目: woodenphone/wpull
 def setUp(self):
     AsyncTestCase.setUp(self)
     self.server = MockFTPServer()
     self.sock = socket.socket()
     self.sock.bind(('127.0.0.1', 0))
     self.server_handle = self.event_loop.run_until_complete(
         asyncio.start_server(self.server, sock=self.sock))
示例#2
0
 def setUp(self):
     AsyncTestCase.setUp(self)
     TornadoAsyncTestCase.setUp(self)
     self.http_server = Server(enable_ssl=self.get_protocol() == 'https')
     self.http_server.start()
     self.http_server.started_event.wait(timeout=5.0)
     self._port = self.http_server.port
示例#3
0
文件: badapp.py 项目: Super-Rad/wpull
 def setUp(self):
     AsyncTestCase.setUp(self)
     TornadoAsyncTestCase.setUp(self)
     self.http_server = Server(enable_ssl=self.get_protocol() == 'https')
     self.http_server.start()
     self.http_server.started_event.wait(timeout=5.0)
     self._port = self.http_server.port
示例#4
0
文件: ftp.py 项目: Willianvdv/wpull
 def setUp(self):
     AsyncTestCase.setUp(self)
     self.server = MockFTPServer()
     self.sock = socket.socket()
     self.sock.bind(('127.0.0.1', 0))
     self.server_handle = self.event_loop.run_until_complete(
         trollius.start_server(self.server, sock=self.sock)
     )
示例#5
0
文件: base.py 项目: Super-Rad/wpull
 def setUp(self):
     AsyncTestCase.setUp(self)
     AsyncHTTPSTestCase.setUp(self)
     self.set_up_temp_dir()
示例#6
0
 def setUp(self):
     AsyncTestCase.setUp(self)
     AsyncHTTPSTestCase.setUp(self)
     # Wait for the app to start up properly (for good luck).
     time.sleep(0.5)
示例#7
0
 def setUp(self):
     AsyncTestCase.setUp(self)
     AsyncHTTPSTestCase.setUp(self)
     # Wait for the app to start up properly (for good luck).
     time.sleep(0.5)
示例#8
0
文件: base.py 项目: woodenphone/wpull
 def setUp(self):
     AsyncTestCase.setUp(self)
     AsyncHTTPSTestCase.setUp(self)
     self.set_up_temp_dir()