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

Method test_unused_connection

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

Source from the content-addressed store, hash-verified

1354
1355 @gen_test
1356 def test_unused_connection(self):
1357 stream = yield self.connect()
1358 event = Event()
1359 stream.set_close_callback(event.set)
1360 yield event.wait()
1361
1362 @gen_test
1363 def test_idle_after_use(self):

Callers

nothing calls this directly

Calls 4

connectMethod · 0.95
waitMethod · 0.95
EventClass · 0.90
set_close_callbackMethod · 0.45

Tested by

no test coverage detected