'Calling L{Deferred.cancel} on the L{Deferred} returned from
L{IStreamClientEndpoint.connect} after enough time has passed that all
connection attempts have been initiated will cause it to be errbacked
with a L{ConnectingCancelledError} exception.'

def test_endpointConnectingCancelledAfterAllAttemptsStarted(self):

    oneBetween = endpoints.HostnameEndpoint._DEFAULT_ATTEMPT_DELAY
    advance = (oneBetween + (oneBetween / 2.0))
    self.test_endpointConnectingCancelled(advance=advance)
