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

Method setUp

tornado/test/httpserver_test.py:421–426  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

419 return Application([("/echo", EchoHandler)])
420
421 def setUp(self):
422 super().setUp()
423 self.stream = IOStream(socket.socket())
424 self.io_loop.run_sync(
425 lambda: self.stream.connect(("127.0.0.1", self.get_http_port()))
426 )
427
428 def tearDown(self):
429 self.stream.close()

Callers

nothing calls this directly

Calls 5

IOStreamClass · 0.90
run_syncMethod · 0.80
setUpMethod · 0.45
connectMethod · 0.45
get_http_portMethod · 0.45

Tested by

no test coverage detected