Module Expr Str ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Index Num Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete AttributeDel NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr orelse If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Return AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num 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 Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr decorator_list Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr decorator_list Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Assign NameStore ListLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIn NameLoad NameLoad Call AttributeLoad NameLoad attr body Raise Call NameLoad Str ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Various helpers for tests for connection-oriented transports.
 __future__ division absolute_import N/A socket gc collect weakref ref zope.interface.verify verifyObject twisted.python context log twisted.python.failure Failure twisted.python.runtime platform twisted.python.log ILogContext msg err twisted.internet.defer Deferred gatherResults twisted.internet.interfaces IConnector IReactorFDSet twisted.internet.protocol ClientFactory Protocol ServerFactory twisted.trial.unittest SkipTest twisted.internet.test.reactormixins needsRunningReactor twisted.test.test_tcp ClosingProtocol findFreePort N/A N/A interface family type N/A 127.0.0.1 N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A 
    Ask the platform to allocate a free port on the specified interface, then
    release the socket and return the address which was allocated.

    @param interface: The local address to try to bind the port on.
    @type interface: C{str}

    @param type: The socket type which will use the resulting port.

    @return: A two-tuple of address and port, like that returned by
        L{socket.getsockname}.
     N/A addr N/A N/A N/A N/A socket getaddrinfo interface 0 N/A 0 N/A 4 N/A probe N/A N/A socket socket family type N/A N/A N/A N/A N/A probe bind addr N/A N/A N/A probe getsockname N/A N/A N/A N/A probe close N/A ConnectableProtocol N/A Protocol N/A N/A 
    A protocol to be used with L{runProtocolsWithReactor}.

    The protocol and its pair should eventually disconnect from each other.

    @ivar reactor: The reactor used in this test.

    @ivar disconnectReason: The L{Failure} passed to C{connectionLost}.

    @ivar _done: A L{Deferred} which will be fired when the connection is
        lost.
     N/A disconnectReason None _setAttributes N/A N/A self reactor done N/A N/A N/A 
        Set attributes on the protocol that are known only externally; this
        will be called by L{runProtocolsWithReactor} when this protocol is
        instantiated.

        @param reactor: The reactor used in this test.

        @param done: A L{Deferred} which will be fired when the connection is
           lost.
         N/A N/A self reactor reactor N/A N/A self _done done N/A connectionLost N/A N/A self reason N/A N/A N/A N/A self disconnectReason reason N/A N/A N/A N/A self _done callback None N/A N/A self _done N/A N/A EndpointCreator N/A N/A N/A 
    Create client and server endpoints that know how to connect to each other.
     server N/A N/A self reactor N/A N/A N/A 
        Return an object providing C{IStreamServerEndpoint} for use in creating
        a server to use to establish the connection type to be tested.
         N/A N/A NotImplementedError N/A client N/A N/A self reactor serverAddress N/A N/A N/A 
        Return an object providing C{IStreamClientEndpoint} for use in creating
        a client to use to establish the connection type to be tested.
         N/A N/A NotImplementedError N/A N/A _SingleProtocolFactory N/A ClientFactory N/A N/A 
    Factory to be used by L{runProtocolsWithReactor}.

    It always returns the same protocol (i.e. is intended for only a single
    connection).
     __init__ N/A N/A self protocol N/A N/A N/A N/A self _protocol protocol N/A buildProtocol N/A N/A self addr N/A N/A N/A N/A self _protocol N/A N/A runProtocolsWithReactor N/A N/A reactorBuilder serverProtocol clientProtocol endpointCreator N/A N/A N/A 
    Connect two protocols using endpoints and a new reactor instance.

    A new reactor will be created and run, with the client and server protocol
    instances connected to each other using the given endpoint creator. The
    protocols should run through some set of tests, then disconnect; when both
    have disconnected the reactor will be stopped and the function will
    return.

    @param reactorBuilder: A L{ReactorBuilder} instance.

    @param serverProtocol: A L{ConnectableProtocol} that will be the server.

    @param clientProtocol: A L{ConnectableProtocol} that will be the client.

    @param endpointCreator: An instance of L{EndpointCreator}.

    @return: The reactor run by this test.
     N/A reactor N/A N/A reactorBuilder buildReactor N/A N/A N/A serverProtocol _setAttributes reactor N/A Deferred N/A N/A N/A clientProtocol _setAttributes reactor N/A Deferred N/A serverFactory N/A _SingleProtocolFactory serverProtocol N/A clientFactory N/A _SingleProtocolFactory clientProtocol N/A serverEndpoint N/A N/A endpointCreator server reactor N/A d N/A N/A serverEndpoint listen serverFactory gotPort N/A N/A p N/A N/A N/A clientEndpoint N/A N/A endpointCreator client reactor N/A N/A p getHost N/A N/A N/A clientEndpoint connect clientFactory N/A N/A N/A N/A d addCallback gotPort failed N/A N/A result N/A N/A N/A N/A N/A log err result Connection setup failed. N/A N/A disconnected N/A gatherResults N/A N/A serverProtocol _done N/A clientProtocol _done N/A N/A N/A d addCallback N/A N/A N/A _ N/A disconnected N/A N/A N/A d addErrback failed N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A needsRunningReactor reactor N/A reactor stop N/A N/A N/A reactorBuilder runReactor reactor N/A reactor N/A _getWriters N/A N/A reactor N/A N/A N/A 
    Like L{IReactorFDSet.getWriters}, but with support for IOCP reactor as
    well.
     N/A N/A N/A IReactorFDSet providedBy reactor N/A N/A N/A N/A reactor getWriters N/A N/A N/A IOCP N/A N/A reactor __class__ __name__ N/A N/A N/A reactor handles N/A N/A N/A Exception N/A Cannot find writers on %r N/A reactor N/A _AcceptOneClient N/A ServerFactory N/A N/A 
    This factory fires a L{Deferred} with a protocol instance shortly after it
    is constructed (hopefully long enough afterwards so that it has been
    connected to a transport).

    @ivar reactor: The reactor used to schedule the I{shortly}.

    @ivar result: A L{Deferred} which will be fired with the protocol instance.
     __init__ N/A N/A self reactor result N/A N/A N/A N/A self reactor reactor N/A N/A self result result N/A buildProtocol N/A N/A self addr N/A N/A N/A protocol N/A N/A ServerFactory buildProtocol self addr N/A N/A N/A N/A self reactor callLater 0 N/A N/A self result callback protocol N/A protocol N/A N/A _SimplePullProducer N/A object N/A N/A 
    A pull producer which writes one byte whenever it is resumed.  For use by
    C{test_unregisterProducerAfterDisconnect}.
     __init__ N/A N/A self consumer N/A N/A N/A N/A self consumer consumer N/A stopProducing N/A N/A self N/A N/A N/A N/A resumeProducing N/A N/A self N/A N/A N/A N/A N/A log msg Producer.resumeProducing N/A N/A N/A N/A self consumer write x N/A N/A Stop N/A ClientFactory N/A N/A 
    A client factory which stops a reactor when a connection attempt fails.
     N/A failReason None __init__ N/A N/A self reactor N/A N/A N/A N/A self reactor reactor N/A clientConnectionFailed N/A N/A self connector reason N/A N/A N/A N/A self failReason reason N/A N/A msg N/A Stop(CF) cCFailed: %s N/A N/A N/A reason getErrorMessage N/A N/A N/A N/A self reactor stop N/A N/A ClosingLaterProtocol N/A ConnectableProtocol N/A N/A 
    ClosingLaterProtocol exchanges one byte with its peer and then disconnects
    itself.  This is mostly a work-around for the fact that connectionMade is
    called before the SSL handshake has completed.
     __init__ N/A N/A self onConnectionLost N/A N/A N/A N/A self lostConnectionReason None N/A N/A self onConnectionLost onConnectionLost N/A connectionMade N/A N/A self N/A N/A N/A N/A msg ClosingLaterProtocol.connectionMade N/A dataReceived N/A N/A self bytes N/A N/A N/A N/A msg N/A ClosingLaterProtocol.dataReceived %r N/A bytes N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A msg ClosingLaterProtocol.connectionLost N/A N/A self lostConnectionReason reason N/A N/A N/A N/A self onConnectionLost callback self N/A N/A ConnectionTestsMixin N/A object N/A N/A 
    This mixin defines test methods which should apply to most L{ITransport}
    implementations.
     N/A endpoints None test_logPrefix N/A N/A self N/A N/A N/A 
        Client and server transports implement L{ILoggingContext.logPrefix} to
        return a message reflecting the protocol they are running.
         CustomLogPrefixProtocol N/A ConnectableProtocol N/A __init__ N/A N/A self prefix N/A N/A N/A N/A self _prefix prefix N/A N/A self system None N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write a N/A logPrefix N/A N/A self N/A N/A N/A N/A self _prefix N/A dataReceived N/A N/A self bytes N/A N/A N/A N/A self system N/A N/A N/A context get ILogContext N/A system N/A N/A N/A N/A self transport write b N/A N/A b bytes N/A N/A N/A N/A N/A self transport loseConnection N/A N/A N/A client N/A CustomLogPrefixProtocol Custom Client N/A server N/A CustomLogPrefixProtocol Custom Server N/A N/A runProtocolsWithReactor self server client N/A self endpoints N/A N/A N/A self assertIn Custom Client N/A client system N/A N/A N/A self assertIn Custom Server N/A server system N/A test_writeAfterDisconnect N/A N/A self N/A N/A N/A 
        After a connection is disconnected, L{ITransport.write} and
        L{ITransport.writeSequence} are no-ops.
         N/A reactor N/A N/A self buildReactor N/A finished N/A N/A serverConnectionLostDeferred N/A Deferred N/A protocol N/A N/A N/A N/A N/A ClosingLaterProtocol serverConnectionLostDeferred N/A portDeferred N/A N/A N/A N/A N/A self endpoints server reactor listen N/A N/A ServerFactory forProtocol protocol listening N/A N/A port N/A N/A N/A N/A msg N/A Listening on %r N/A N/A N/A port getHost N/A endpoint N/A N/A N/A self endpoints client reactor N/A N/A port getHost N/A lostConnectionDeferred N/A Deferred N/A protocol N/A N/A N/A N/A N/A ClosingLaterProtocol lostConnectionDeferred N/A client N/A N/A endpoint connect N/A N/A ClientFactory forProtocol protocol write N/A N/A proto N/A N/A N/A N/A msg N/A About to write to %r N/A proto N/A N/A N/A N/A proto transport write x N/A N/A N/A N/A client addCallbacks write N/A lostConnectionDeferred errback disconnected N/A N/A proto N/A N/A N/A N/A msg N/A %r disconnected N/A proto N/A N/A N/A N/A proto transport write some bytes to get lost N/A N/A N/A N/A proto transport writeSequence N/A some more N/A N/A N/A finished append True N/A N/A N/A N/A lostConnectionDeferred addCallback disconnected N/A N/A N/A serverConnectionLostDeferred addCallback disconnected N/A N/A gatherResults N/A lostConnectionDeferred serverConnectionLostDeferred N/A onListen N/A N/A N/A N/A N/A N/A N/A portDeferred addCallback listening N/A N/A N/A portDeferred addErrback err N/A N/A N/A portDeferred addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A needsRunningReactor reactor onListen N/A N/A N/A self runReactor reactor N/A N/A N/A self assertEqual finished N/A True True N/A test_protocolGarbageAfterLostConnection N/A N/A self N/A N/A N/A 
        After the connection a protocol is being used for is closed, the
        reactor discards all of its references to the protocol.
         N/A lostConnectionDeferred N/A Deferred N/A clientProtocol N/A ClosingLaterProtocol lostConnectionDeferred N/A clientRef N/A ref clientProtocol N/A reactor N/A N/A self buildReactor N/A portDeferred N/A N/A N/A N/A N/A self endpoints server reactor listen N/A N/A ServerFactory forProtocol Protocol listening N/A N/A port N/A N/A N/A N/A msg N/A Listening on %r N/A N/A N/A port getHost N/A endpoint N/A N/A N/A self endpoints client reactor N/A N/A port getHost N/A client N/A N/A endpoint connect N/A N/A ClientFactory forProtocol N/A N/A N/A N/A clientProtocol disconnect N/A N/A proto N/A N/A N/A N/A msg N/A About to disconnect %r N/A proto N/A N/A N/A N/A proto transport loseConnection N/A N/A N/A N/A client addCallback disconnect N/A N/A N/A client addErrback N/A lostConnectionDeferred errback N/A lostConnectionDeferred N/A onListening N/A N/A N/A N/A N/A N/A N/A portDeferred addCallback listening N/A N/A N/A portDeferred addErrback err N/A N/A N/A portDeferred addBoth N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A needsRunningReactor reactor onListening N/A N/A N/A self runReactor reactor N/A clientProtocol None N/A N/A collect N/A N/A N/A self assertIs None N/A clientRef N/A N/A LogObserverMixin N/A object N/A N/A 
    Mixin for L{TestCase} subclasses which want to observe log events.
     observe N/A N/A self N/A N/A N/A loggedMessages N/A N/A N/A N/A log addObserver N/A loggedMessages append N/A N/A N/A self addCleanup N/A log removeObserver N/A loggedMessages append N/A loggedMessages N/A N/A BrokenContextFactory N/A object N/A N/A 
    A context factory with a broken C{getContext} method, for exercising the
    error handling for such a case.
     N/A message Some path was wrong maybe getContext N/A N/A self N/A N/A N/A N/A ValueError N/A self message N/A N/A StreamClientTestsMixin N/A object N/A N/A 
    This mixin defines tests applicable to SOCK_STREAM client implementations.

    This must be mixed in to a L{ReactorBuilder
    <twisted.internet.test.reactormixins.ReactorBuilder>} subclass, as it
    depends on several of its methods.

    Then the methods C{connect} and C{listen} must defined, defining a client
    and a server communicating with each other.
     test_interface N/A N/A self N/A N/A N/A 
        The C{connect} method returns an object providing L{IConnector}.
         N/A reactor N/A N/A self buildReactor N/A connector N/A N/A self connect reactor N/A ClientFactory N/A N/A N/A self assertTrue N/A verifyObject IConnector connector N/A test_clientConnectionFailedStopsReactor N/A N/A self N/A N/A N/A 
        The reactor can be stopped by a client factory's
        C{clientConnectionFailed} method.
         N/A reactor N/A N/A self buildReactor N/A N/A needsRunningReactor reactor N/A N/A N/A N/A N/A N/A self connect reactor N/A Stop reactor N/A N/A N/A self runReactor reactor N/A test_connectEvent N/A N/A self N/A N/A N/A 
        This test checks that we correctly get notifications event for a
        client.  This ought to prevent a regression under Windows using the
        GTK2 reactor.  See #3925.
         N/A reactor N/A N/A self buildReactor N/A N/A N/A self listen reactor N/A N/A ServerFactory forProtocol Protocol N/A connected N/A CheckConnection N/A Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A connected append self N/A N/A N/A reactor stop N/A N/A N/A clientFactory N/A Stop reactor N/A N/A clientFactory protocol CheckConnection N/A N/A needsRunningReactor reactor N/A N/A N/A N/A N/A N/A self connect reactor clientFactory N/A N/A N/A reactor run N/A N/A N/A self assertTrue connected N/A test_unregisterProducerAfterDisconnect N/A N/A self N/A N/A N/A 
        If a producer is unregistered from a transport after the transport has
        been disconnected (by the peer) and after C{loseConnection} has been
        called, the transport is not re-added to the reactor as a writer as
        would be necessary if the transport were still connected.
         N/A reactor N/A N/A self buildReactor N/A N/A N/A self listen reactor N/A N/A ServerFactory forProtocol ClosingProtocol N/A finished N/A Deferred N/A N/A N/A finished addErrback N/A log err N/A N/A N/A finished addCallback N/A N/A N/A ign N/A N/A N/A reactor stop N/A writing N/A ClientProtocol N/A Protocol N/A N/A 
            Protocol to connect, register a producer, try to lose the
            connection, wait for the server to disconnect from us, and then
            unregister the producer.
             connectionMade N/A N/A self N/A N/A N/A N/A N/A log msg ClientProtocol.connectionMade N/A N/A N/A N/A self transport registerProducer N/A _SimplePullProducer N/A self transport False N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A log msg ClientProtocol.connectionLost N/A N/A N/A self unregister N/A N/A N/A writing append N/A N/A self transport N/A _getWriters reactor N/A N/A N/A finished callback None N/A unregister N/A N/A self N/A N/A N/A N/A N/A log msg ClientProtocol unregister N/A N/A N/A N/A self transport unregisterProducer N/A N/A N/A clientFactory N/A ClientFactory N/A N/A clientFactory protocol ClientProtocol N/A N/A N/A self connect reactor clientFactory N/A N/A N/A self runReactor reactor N/A N/A N/A self assertFalse N/A writing N/A 0 Transport was writing after unregisterProducer. N/A test_disconnectWhileProducing N/A N/A self N/A N/A N/A 
        If C{loseConnection} is called while a producer is registered with the
        transport, the connection is closed after the producer is unregistered.
         N/A reactor N/A N/A self buildReactor N/A skippedReactors N/A Glib2Reactor Gtk2Reactor N/A reactorClassName N/A N/A reactor __class__ __name__ N/A N/A N/A reactorClassName skippedReactors N/A N/A platform isWindows N/A N/A N/A SkipTest A pygobject/pygtk bug disables this functionality on Windows. Producer N/A N/A resumeProducing N/A N/A self N/A N/A N/A N/A N/A log msg Producer.resumeProducing N/A N/A N/A N/A N/A self listen reactor N/A N/A ServerFactory forProtocol Protocol N/A finished N/A Deferred N/A N/A N/A finished addErrback N/A log err N/A N/A N/A finished addCallback N/A N/A N/A ign N/A N/A N/A reactor stop ClientProtocol N/A Protocol N/A N/A 
            Protocol to connect, register a producer, try to lose the
            connection, unregister the producer, and wait for the connection to
            actually be lost.
             connectionMade N/A N/A self N/A N/A N/A N/A N/A log msg ClientProtocol.connectionMade N/A N/A N/A N/A self transport registerProducer N/A Producer False N/A N/A N/A N/A self transport loseConnection N/A N/A N/A reactor callLater 0 N/A reactor callLater 0 N/A self unregister N/A unregister N/A N/A self N/A N/A N/A N/A N/A log msg ClientProtocol unregister N/A N/A N/A N/A self transport unregisterProducer N/A N/A N/A reactor callLater 1.0 N/A finished errback N/A Failure N/A Exception Connection was not lost N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A log msg ClientProtocol.connectionLost N/A N/A N/A finished callback None N/A N/A N/A clientFactory N/A ClientFactory N/A N/A clientFactory protocol ClientProtocol N/A N/A N/A self connect reactor clientFactory N/A N/A N/A self runReactor reactor N/A N/A