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

Method test_future

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

Source from the content-addressed store, hash-verified

136 super().tearDown()
137
138 def test_future(self):
139 future = self.client.capitalize("hello")
140 self.io_loop.add_future(future, self.stop)
141 self.wait()
142 self.assertEqual(future.result(), "HELLO")
143
144 def test_future_error(self):
145 future = self.client.capitalize("HELLO")

Callers

nothing calls this directly

Calls 4

capitalizeMethod · 0.80
add_futureMethod · 0.80
resultMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected