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

Method setUp

tornado/test/concurrent_test.py:127–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125
126class GeneratorCapClientTest(AsyncTestCase):
127 def setUp(self):
128 super().setUp()
129 self.server = CapServer()
130 sock, port = bind_unused_port()
131 self.server.add_sockets([sock])
132 self.client = GeneratorCapClient(port=port)
133
134 def tearDown(self):
135 self.server.stop()

Callers

nothing calls this directly

Calls 4

bind_unused_portFunction · 0.90
CapServerClass · 0.85
GeneratorCapClientClass · 0.85
add_socketsMethod · 0.80

Tested by

no test coverage detected