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

def test_cancelConnectSSLFailedTimeout(self):

    def connect(reactor, cc):
        d = cc.connectSSL('example.com', 1234, object())
        (host, port, factory, contextFactory, timeout, bindADdress) = reactor.sslClients.pop()
        return (d, factory)
    return self._cancelConnectFailedTimeoutTest(connect)
