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

Method test_immediate_failure

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

Source from the content-addressed store, hash-verified

254 self.assertEqual(future.result(), (AF1, "a", self.streams["a"]))
255
256 def test_immediate_failure(self):
257 # Fail with just one address.
258 conn, future = self.start_connect([(AF1, "a")])
259 self.assert_pending((AF1, "a"))
260 self.resolve_connect(AF1, "a", False)
261 self.assertRaises(IOError, future.result)
262
263 def test_one_family_second_try(self):
264 conn, future = self.start_connect([(AF1, "a"), (AF1, "b")])

Callers

nothing calls this directly

Calls 3

start_connectMethod · 0.95
assert_pendingMethod · 0.95
resolve_connectMethod · 0.95

Tested by

no test coverage detected