Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list 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
N/A N/A 
Tests for L{twisted.internet.protocol}.
 twisted.python.failure Failure twisted.internet.defer CancelledError twisted.internet.protocol Protocol ClientCreator twisted.internet.task Clock twisted.trial.unittest TestCase twisted.test.proto_helpers MemoryReactor StringTransport MemoryConnector N/A N/A N/A _disconnected False disconnect N/A N/A self N/A N/A N/A N/A self _disconnected True N/A N/A MemoryReactorWithConnectorsAndTime N/A MemoryReactor Clock N/A N/A 
    An extension of L{MemoryReactor} which returns L{IConnector}
    providers from its C{connectTCP} method.
     __init__ N/A N/A self N/A N/A N/A N/A N/A MemoryReactor __init__ self N/A N/A N/A Clock __init__ self N/A N/A self connectors N/A N/A connectTCP N/A N/A self N/A a kw N/A N/A N/A N/A MemoryReactor connectTCP self a kw N/A connector N/A MemoryConnector N/A N/A N/A N/A self connectors append connector N/A connector N/A connectUNIX N/A N/A self N/A a kw N/A N/A N/A N/A MemoryReactor connectUNIX self a kw N/A connector N/A MemoryConnector N/A N/A N/A N/A self connectors append connector N/A connector N/A connectSSL N/A N/A self N/A a kw N/A N/A N/A N/A MemoryReactor connectSSL self a kw N/A connector N/A MemoryConnector N/A N/A N/A N/A self connectors append connector N/A connector N/A N/A 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 MemoryReactorWithConnectorsAndTime 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 assertEquals host example.com N/A N/A N/A self assertEquals port 1234 N/A N/A N/A self assertEquals timeout 4321 N/A N/A N/A self assertEquals 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 assertEquals address /foo/bar N/A N/A N/A self assertEquals timeout 123 N/A N/A N/A self assertEquals 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 assertEquals host example.com N/A N/A N/A self assertEquals port 1234 N/A N/A N/A self assertIdentical contextFactory expectedContextFactory N/A N/A N/A self assertEquals timeout 4321 N/A N/A N/A self assertEquals 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 MemoryReactorWithConnectorsAndTime 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 MemoryReactorWithConnectorsAndTime 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 assertEquals 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 assertEquals 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 MemoryReactorWithConnectorsAndTime 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 assertEquals 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 assertEquals 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