MCPcopy Create free account
hub / github.com/EasyIME/PIME / setUp

Method setUp

python/python3/tornado/test/testing_test.py:90–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88
89class AsyncHTTPTestCaseTest(AsyncHTTPTestCase):
90 def setUp(self):
91 super().setUp()
92 # Bind a second port.
93 sock, port = bind_unused_port()
94 app = Application()
95 server = HTTPServer(app, **self.get_httpserver_options())
96 server.add_socket(sock)
97 self.second_port = port
98 self.second_server = server
99
100 def get_app(self):
101 return Application()

Callers

nothing calls this directly

Calls 6

bind_unused_portFunction · 0.90
ApplicationClass · 0.90
HTTPServerClass · 0.90
add_socketMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected