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

Method test_immediate_success

tornado/test/tcpclient_test.py:250–254  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

248 return conn, future
249
250 def test_immediate_success(self):
251 conn, future = self.start_connect(self.addrinfo)
252 self.assertEqual(list(self.connect_futures.keys()), [(AF1, "a")])
253 self.resolve_connect(AF1, "a", True)
254 self.assertEqual(future.result(), (AF1, "a", self.streams["a"]))
255
256 def test_immediate_failure(self):
257 # Fail with just one address.

Callers

nothing calls this directly

Calls 3

start_connectMethod · 0.95
resolve_connectMethod · 0.95
resultMethod · 0.80

Tested by

no test coverage detected