'Similar to L{test_cancelConnectTCPTimeout}, but for the case where the
connection attempt fails.'

def test_cancelConnectTCPFailedTimeout(self):

    def connect(reactor, cc):
        d = cc.connectTCP('example.com', 1234)
        (host, port, factory, timeout, bindAddress) = reactor.tcpClients.pop()
        return (d, factory)
    return self._cancelConnectFailedTimeoutTest(connect)
