Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Num TupleLoad Str Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Num NameLoad Num TupleLoad Str Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Num Call NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Call NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Call NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Assign NameStore Num decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.internet.protocol}.
 __future__ division absolute_import zope.interface.verify verifyObject zope.interface implementer twisted.python.failure Failure twisted.internet.interfaces IProtocol ILoggingContext IProtocolFactory IConsumer twisted.internet.defer CancelledError twisted.internet.protocol Protocol ClientCreator Factory ProtocolToConsumerAdapter ConsumerToProtocolAdapter twisted.trial.unittest TestCase twisted.test.proto_helpers MemoryReactorClock StringTransport twisted.logger LogLevel globalLogPublisher ClientCreatorTests N/A TestCase N/A N/A 
    Tests for L{twisted.internet.protocol.ClientCreator}.
     _basicConnectTest N/A N/A self check N/A N/A N/A 
        Helper for implementing a test to verify that one of the I{connect}
        methods of L{ClientCreator} passes the right arguments to the right
        reactor method.

        @param check: A function which will be invoked with a reactor and a
            L{ClientCreator} instance and which should call one of the
            L{ClientCreator}'s I{connect} methods and assert that all of its
            arguments except for the factory are passed on as expected to the
            reactor.  The factory should be returned.
         SomeProtocol N/A Protocol N/A N/A N/A N/A reactor N/A MemoryReactorClock N/A cc N/A ClientCreator reactor SomeProtocol N/A factory N/A check reactor cc N/A protocol N/A N/A factory buildProtocol None N/A N/A N/A self assertIsInstance protocol SomeProtocol N/A test_connectTCP N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectTCP} calls C{reactor.connectTCP} with the host
        and port information passed to it, and with a factory which will
        construct the protocol passed to L{ClientCreator.__init__}.
         check N/A N/A reactor cc N/A N/A N/A N/A N/A cc connectTCP example.com 1234 4321 N/A 1.2.3.4 9876 N/A N/A host port factory timeout bindAddress N/A N/A N/A reactor tcpClients pop N/A N/A N/A self assertEqual host example.com N/A N/A N/A self assertEqual port 1234 N/A N/A N/A self assertEqual timeout 4321 N/A N/A N/A self assertEqual bindAddress N/A 1.2.3.4 9876 N/A factory N/A N/A N/A N/A self _basicConnectTest check N/A test_connectUNIX N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectUNIX} calls C{reactor.connectUNIX} with the
        filename passed to it, and with a factory which will construct the
        protocol passed to L{ClientCreator.__init__}.
         check N/A N/A reactor cc N/A N/A N/A N/A N/A cc connectUNIX /foo/bar 123 True N/A N/A address factory timeout checkPID N/A N/A N/A reactor unixClients pop N/A N/A N/A self assertEqual address /foo/bar N/A N/A N/A self assertEqual timeout 123 N/A N/A N/A self assertEqual checkPID True N/A factory N/A N/A N/A N/A self _basicConnectTest check N/A test_connectSSL N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectSSL} calls C{reactor.connectSSL} with the host,
        port, and context factory passed to it, and with a factory which will
        construct the protocol passed to L{ClientCreator.__init__}.
         check N/A N/A reactor cc N/A N/A N/A expectedContextFactory N/A object N/A N/A N/A cc connectSSL example.com 1234 expectedContextFactory 4321 N/A 4.3.2.1 5678 N/A N/A host port factory contextFactory timeout bindAddress N/A N/A N/A reactor sslClients pop N/A N/A N/A self assertEqual host example.com N/A N/A N/A self assertEqual port 1234 N/A N/A N/A self assertIs contextFactory expectedContextFactory N/A N/A N/A self assertEqual timeout 4321 N/A N/A N/A self assertEqual bindAddress N/A 4.3.2.1 5678 N/A factory N/A N/A N/A N/A self _basicConnectTest check N/A _cancelConnectTest N/A N/A self connect N/A N/A N/A 
        Helper for implementing a test to verify that cancellation of the
        L{Deferred} returned by one of L{ClientCreator}'s I{connect} methods is
        implemented to cancel the underlying connector.

        @param connect: A function which will be invoked with a L{ClientCreator}
            instance as an argument and which should call one its I{connect}
            methods and return the result.

        @return: A L{Deferred} which fires when the test is complete or fails if
            there is a problem.
         N/A reactor N/A MemoryReactorClock N/A cc N/A ClientCreator reactor Protocol N/A d N/A connect cc N/A connector N/A N/A N/A reactor connectors pop N/A N/A N/A self assertFalse N/A connector _disconnected N/A N/A N/A d cancel N/A N/A N/A self assertTrue N/A connector _disconnected N/A N/A N/A self assertFailure d CancelledError N/A test_cancelConnectTCP N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{ClientCreator.connectTCP} can be cancelled
        to abort the connection attempt before it completes.
         connect N/A N/A cc N/A N/A N/A N/A N/A cc connectTCP example.com 1234 N/A N/A N/A N/A self _cancelConnectTest connect N/A test_cancelConnectUNIX N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{ClientCreator.connectTCP} can be cancelled
        to abort the connection attempt before it completes.
         connect N/A N/A cc N/A N/A N/A N/A N/A cc connectUNIX /foo/bar N/A N/A N/A N/A self _cancelConnectTest connect N/A test_cancelConnectSSL N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{ClientCreator.connectTCP} can be cancelled
        to abort the connection attempt before it completes.
         connect N/A N/A cc N/A N/A N/A N/A N/A cc connectSSL example.com 1234 N/A object N/A N/A N/A N/A self _cancelConnectTest connect N/A _cancelConnectTimeoutTest N/A N/A self connect N/A N/A N/A 
        Like L{_cancelConnectTest}, but for the case where the L{Deferred} is
        cancelled after the connection is set up but before it is fired with the
        resulting protocol instance.
         N/A reactor N/A MemoryReactorClock N/A cc N/A ClientCreator reactor Protocol N/A d N/A connect reactor cc N/A connector N/A N/A N/A reactor connectors pop N/A N/A N/A self assertEqual N/A len N/A N/A reactor getDelayedCalls 1 N/A N/A N/A d cancel N/A N/A N/A self assertEqual N/A N/A reactor getDelayedCalls N/A N/A N/A N/A self assertTrue N/A connector _disconnected N/A N/A N/A self assertFailure d CancelledError N/A test_cancelConnectTCPTimeout N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectTCP} inserts a very short delayed call between
        the time the connection is established and the time the L{Deferred}
        returned from one of its connect methods actually fires.  If the
        L{Deferred} is cancelled in this interval, the established connection is
        closed, the timeout is cancelled, and the L{Deferred} fails with
        L{CancelledError}.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectTCP example.com 1234 N/A N/A host port factory timeout bindAddress N/A N/A N/A reactor tcpClients pop N/A protocol N/A N/A factory buildProtocol None N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A d N/A N/A N/A N/A self _cancelConnectTimeoutTest connect N/A test_cancelConnectUNIXTimeout N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectUNIX} inserts a very short delayed call between
        the time the connection is established and the time the L{Deferred}
        returned from one of its connect methods actually fires.  If the
        L{Deferred} is cancelled in this interval, the established connection is
        closed, the timeout is cancelled, and the L{Deferred} fails with
        L{CancelledError}.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectUNIX /foo/bar N/A N/A address factory timeout bindAddress N/A N/A N/A reactor unixClients pop N/A protocol N/A N/A factory buildProtocol None N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A d N/A N/A N/A N/A self _cancelConnectTimeoutTest connect N/A test_cancelConnectSSLTimeout N/A N/A self N/A N/A N/A 
        L{ClientCreator.connectSSL} inserts a very short delayed call between
        the time the connection is established and the time the L{Deferred}
        returned from one of its connect methods actually fires.  If the
        L{Deferred} is cancelled in this interval, the established connection is
        closed, the timeout is cancelled, and the L{Deferred} fails with
        L{CancelledError}.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectSSL example.com 1234 N/A object N/A N/A host port factory contextFactory timeout bindADdress N/A N/A N/A reactor sslClients pop N/A protocol N/A N/A factory buildProtocol None N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A d N/A N/A N/A N/A self _cancelConnectTimeoutTest connect N/A _cancelConnectFailedTimeoutTest N/A N/A self connect N/A N/A N/A 
        Like L{_cancelConnectTest}, but for the case where the L{Deferred} is
        cancelled after the connection attempt has failed but before it is fired
        with the resulting failure.
         N/A reactor N/A MemoryReactorClock N/A cc N/A ClientCreator reactor Protocol N/A N/A d factory N/A connect reactor cc N/A connector N/A N/A N/A reactor connectors pop N/A N/A N/A factory clientConnectionFailed connector N/A Failure N/A Exception Simulated failure N/A N/A N/A self assertEqual N/A len N/A N/A reactor getDelayedCalls 1 N/A N/A N/A d cancel N/A N/A N/A self assertEqual N/A N/A reactor getDelayedCalls N/A N/A N/A N/A self assertFailure d CancelledError N/A test_cancelConnectTCPFailedTimeout N/A N/A self N/A N/A N/A 
        Similar to L{test_cancelConnectTCPTimeout}, but for the case where the
        connection attempt fails.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectTCP example.com 1234 N/A N/A host port factory timeout bindAddress N/A N/A N/A reactor tcpClients pop N/A N/A d factory N/A N/A N/A N/A self _cancelConnectFailedTimeoutTest connect N/A test_cancelConnectUNIXFailedTimeout N/A N/A self N/A N/A N/A 
        Similar to L{test_cancelConnectUNIXTimeout}, but for the case where the
        connection attempt fails.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectUNIX /foo/bar N/A N/A address factory timeout bindAddress N/A N/A N/A reactor unixClients pop N/A N/A d factory N/A N/A N/A N/A self _cancelConnectFailedTimeoutTest connect N/A test_cancelConnectSSLFailedTimeout N/A N/A self N/A N/A N/A 
        Similar to L{test_cancelConnectSSLTimeout}, but for the case where the
        connection attempt fails.
         connect N/A N/A reactor cc N/A N/A N/A d N/A N/A cc connectSSL example.com 1234 N/A object N/A N/A host port factory contextFactory timeout bindADdress N/A N/A N/A reactor sslClients pop N/A N/A d factory N/A N/A N/A N/A self _cancelConnectFailedTimeoutTest connect N/A N/A ProtocolTests N/A TestCase N/A N/A 
    Tests for L{twisted.internet.protocol.Protocol}.
     test_interfaces N/A N/A self N/A N/A N/A 
        L{Protocol} instances provide L{IProtocol} and L{ILoggingContext}.
         N/A proto N/A Protocol N/A N/A N/A self assertTrue N/A verifyObject IProtocol proto N/A N/A N/A self assertTrue N/A verifyObject ILoggingContext proto N/A test_logPrefix N/A N/A self N/A N/A N/A 
        L{Protocol.logPrefix} returns the protocol class's name.
         SomeThing N/A Protocol N/A N/A N/A N/A N/A N/A self assertEqual SomeThing N/A N/A N/A SomeThing logPrefix N/A test_makeConnection N/A N/A self N/A N/A N/A 
        L{Protocol.makeConnection} sets the given transport on itself, and
        then calls C{connectionMade}.
         N/A result N/A SomeProtocol N/A Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A result append N/A self transport N/A N/A N/A transport N/A object N/A protocol N/A SomeProtocol N/A N/A N/A protocol makeConnection transport N/A N/A N/A self assertEqual result N/A transport N/A N/A FactoryTests N/A TestCase N/A N/A 
    Tests for L{protocol.Factory}.
     test_interfaces N/A N/A self N/A N/A N/A 
        L{Factory} instances provide both L{IProtocolFactory} and
        L{ILoggingContext}.
         N/A factory N/A Factory N/A N/A N/A self assertTrue N/A verifyObject IProtocolFactory factory N/A N/A N/A self assertTrue N/A verifyObject ILoggingContext factory N/A test_logPrefix N/A N/A self N/A N/A N/A 
        L{Factory.logPrefix} returns the name of the factory class.
         SomeKindOfFactory N/A Factory N/A N/A N/A N/A N/A N/A self assertEqual SomeKindOfFactory N/A N/A N/A SomeKindOfFactory logPrefix N/A test_defaultBuildProtocol N/A N/A self N/A N/A N/A 
        L{Factory.buildProtocol} by default constructs a protocol by calling
        its C{protocol} attribute, and attaches the factory to the result.
         SomeProtocol N/A Protocol N/A N/A N/A N/A f N/A Factory N/A N/A f protocol SomeProtocol N/A protocol N/A N/A f buildProtocol None N/A N/A N/A self assertIsInstance protocol SomeProtocol N/A N/A N/A self assertIs N/A protocol factory f N/A test_forProtocol N/A N/A self N/A N/A N/A 
        L{Factory.forProtocol} constructs a Factory, passing along any
        additional arguments, and sets its C{protocol} attribute to the given
        Protocol subclass.
         ArgTakingFactory N/A Factory N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A self args N/A self kwargs N/A args kwargs N/A N/A N/A factory N/A N/A ArgTakingFactory forProtocol Protocol 1 2 foo 12 N/A N/A N/A self assertEqual N/A factory protocol Protocol N/A N/A N/A self assertEqual N/A factory args N/A 1 2 N/A N/A N/A self assertEqual N/A factory kwargs N/A foo 12 N/A test_doStartLoggingStatement N/A N/A self N/A N/A N/A 
        L{Factory.doStart} logs that it is starting a factory, followed by
        the L{repr} of the L{Factory} instance that is being started.
         N/A events N/A N/A N/A N/A globalLogPublisher addObserver N/A events append N/A N/A N/A self addCleanup N/A N/A N/A N/A N/A N/A globalLogPublisher removeObserver N/A events append N/A f N/A Factory N/A N/A N/A f doStart N/A N/A N/A self assertIs N/A N/A events N/A 0 N/A factory f N/A N/A N/A self assertEqual N/A N/A events N/A 0 N/A log_level N/A LogLevel info N/A N/A N/A self assertEqual N/A N/A events N/A 0 N/A log_format Starting factory {factory!r} N/A test_doStopLoggingStatement N/A N/A self N/A N/A N/A 
        L{Factory.doStop} logs that it is stopping a factory, followed by
        the L{repr} of the L{Factory} instance that is being stopped.
         N/A events N/A N/A N/A N/A globalLogPublisher addObserver N/A events append N/A N/A N/A self addCleanup N/A N/A N/A N/A N/A N/A globalLogPublisher removeObserver N/A events append MyFactory N/A Factory N/A N/A numPorts 1 N/A N/A f N/A MyFactory N/A N/A N/A f doStop N/A N/A N/A self assertIs N/A N/A events N/A 0 N/A factory f N/A N/A N/A self assertEqual N/A N/A events N/A 0 N/A log_level N/A LogLevel info N/A N/A N/A self assertEqual N/A N/A events N/A 0 N/A log_format Stopping factory {factory!r} N/A N/A AdapterTests N/A TestCase N/A N/A 
    Tests for L{ProtocolToConsumerAdapter} and L{ConsumerToProtocolAdapter}.
     test_protocolToConsumer N/A N/A self N/A N/A N/A 
        L{IProtocol} providers can be adapted to L{IConsumer} providers using
        L{ProtocolToConsumerAdapter}.
         N/A result N/A N/A p N/A Protocol N/A N/A p dataReceived N/A result append N/A consumer N/A IConsumer p N/A N/A N/A consumer write hello N/A N/A N/A self assertEqual result N/A hello N/A N/A N/A self assertIsInstance consumer ProtocolToConsumerAdapter N/A test_consumerToProtocol N/A N/A self N/A N/A N/A 
        L{IConsumer} providers can be adapted to L{IProtocol} providers using
        L{ProtocolToConsumerAdapter}.
         N/A result N/A Consumer N/A object N/A write N/A N/A self d N/A N/A N/A N/A N/A result append d N/A N/A N/A implementer IConsumer N/A c N/A Consumer N/A protocol N/A IProtocol c N/A N/A N/A protocol dataReceived hello N/A N/A N/A self assertEqual result N/A hello N/A N/A N/A self assertIsInstance protocol ConsumerToProtocolAdapter N/A N/A