MCPcopy
hub / github.com/tornadoweb/tornado / setUp

Method setUp

tornado/test/testing_test.py:89–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87
88class AsyncHTTPTestCaseTest(AsyncHTTPTestCase):
89 def setUp(self):
90 super().setUp()
91 # Bind a second port.
92 sock, port = bind_unused_port()
93 app = Application()
94 server = HTTPServer(app, **self.get_httpserver_options())
95 server.add_socket(sock)
96 self.second_port = port
97 self.second_server = server
98
99 def get_app(self):
100 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