Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Expr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults BinOpFloorDiv Num Num Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call 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 Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.internet.posixbase} and supporting code.
 twisted.python.compat set twisted.trial.unittest TestCase twisted.internet.defer Deferred twisted.internet.posixbase PosixReactorBase _Waker twisted.internet.protocol ServerFactory N/A skipSockets None N/A N/A twisted.internet unix N/A N/A N/A ImportError N/A N/A skipSockets Platform does not support AF_UNIX sockets twisted.internet.tcp Port twisted.internet reactor twisted.test.test_unix ClientProto TrivialReactor N/A PosixReactorBase N/A __init__ N/A N/A self N/A N/A N/A N/A self _readers N/A N/A N/A self _writers N/A N/A N/A N/A PosixReactorBase __init__ self N/A addReader N/A N/A self reader N/A N/A N/A N/A N/A self _readers N/A reader True N/A removeReader N/A N/A self reader N/A N/A N/A N/A N/A self _readers N/A reader N/A addWriter N/A N/A self writer N/A N/A N/A N/A N/A self _writers N/A writer True N/A removeWriter N/A N/A self writer N/A N/A N/A N/A N/A self _writers N/A writer N/A N/A PosixReactorBaseTests N/A TestCase N/A N/A 
    Tests for L{PosixReactorBase}.
     _checkWaker N/A N/A self reactor N/A N/A N/A N/A N/A self assertIsInstance N/A reactor waker _Waker N/A N/A N/A self assertIn N/A reactor waker N/A reactor _internalReaders N/A N/A N/A self assertIn N/A reactor waker N/A reactor _readers N/A test_wakerIsInternalReader N/A N/A self N/A N/A N/A 
        When L{PosixReactorBase} is instantiated, it creates a waker and adds
        it to its internal readers set.
         N/A reactor N/A TrivialReactor N/A N/A N/A self _checkWaker reactor N/A test_removeAllSkipsInternalReaders N/A N/A self N/A N/A N/A 
        Any L{IReadDescriptors} in L{PosixReactorBase._internalReaders} are
        left alone by L{PosixReactorBase._removeAll}.
         N/A reactor N/A TrivialReactor N/A extra N/A object N/A N/A N/A N/A reactor _internalReaders add extra N/A N/A N/A reactor addReader extra N/A N/A N/A reactor _removeAll N/A reactor _readers N/A reactor _writers N/A N/A N/A self _checkWaker reactor N/A N/A N/A self assertIn extra N/A reactor _internalReaders N/A N/A N/A self assertIn extra N/A reactor _readers N/A test_removeAllReturnsRemovedDescriptors N/A N/A self N/A N/A N/A 
        L{PosixReactorBase._removeAll} returns a list of removed
        L{IReadDescriptor} and L{IWriteDescriptor} objects.
         N/A reactor N/A TrivialReactor N/A reader N/A object N/A writer N/A object N/A N/A N/A reactor addReader reader N/A N/A N/A reactor addWriter writer N/A removed N/A N/A reactor _removeAll N/A reactor _readers N/A reactor _writers N/A N/A N/A self assertEqual N/A set removed N/A set N/A reader writer N/A N/A N/A self assertNotIn reader N/A reactor _readers N/A N/A N/A self assertNotIn writer N/A reactor _writers N/A test_IReactorArbitraryIsDeprecated N/A N/A self N/A N/A N/A 
        L{twisted.internet.interfaces.IReactorArbitrary} is redundant with
        L{twisted.internet.interfaces.IReactorFDSet} and is deprecated.
         twisted.internet interfaces N/A N/A interfaces IReactorArbitrary N/A warningsShown N/A N/A self flushWarnings N/A N/A self test_IReactorArbitraryIsDeprecated N/A N/A N/A self assertEqual N/A len warningsShown 1 N/A N/A N/A self assertEqual N/A N/A warningsShown N/A 0 N/A category DeprecationWarning N/A N/A N/A self assertEqual twisted.internet.interfaces.IReactorArbitrary was deprecated in Twisted 10.1.0: See IReactorFDSet. N/A N/A warningsShown N/A 0 N/A message N/A test_listenWithIsDeprecated N/A N/A self N/A N/A N/A 
        L{PosixReactorBase} implements the deprecated L{IReactorArbitrary}, and
        L{PosixReactorBase.listenWith} is a part of that interface. To avoid
        unnecessary deprecation warnings when importing posixbase, the
        L{twisted.internet.interfaces._IReactorArbitrary} alias that doesn't
        have the deprecation warning is imported, and instead
        L{PosixReactorBase.listenWith} generates its own deprecation warning.
         fakePort N/A N/A __init__ N/A N/A self N/A args kw N/A N/A N/A startListening N/A N/A self N/A N/A N/A N/A N/A N/A reactor N/A TrivialReactor N/A N/A N/A reactor listenWith fakePort N/A warnings N/A N/A self flushWarnings N/A N/A self test_listenWithIsDeprecated N/A N/A N/A self assertEqual N/A len warnings 1 N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A category DeprecationWarning N/A N/A N/A self assertEqual listenWith is deprecated since Twisted 10.1.  See IReactorFDSet. N/A N/A warnings N/A 0 N/A message N/A test_connectWithIsDeprecated N/A N/A self N/A N/A N/A 
        L{PosixReactorBase} implements the deprecated L{IReactorArbitrary}, and
        L{PosixReactorBase.connectWith} is a part of that interface. To avoid
        unnecessary deprecation warnings when importing posixbase, the
        L{twisted.internet.interfaces._IReactorArbitrary} alias that doesn't
        have the deprecation warning is imported, and instead
        L{PosixReactorBase.connectWith} generates its own deprecation warning.
         fakeConnector N/A N/A __init__ N/A N/A self N/A args kw N/A N/A N/A connect N/A N/A self N/A N/A N/A N/A N/A N/A reactor N/A TrivialReactor N/A N/A N/A reactor connectWith fakeConnector N/A warnings N/A N/A self flushWarnings N/A N/A self test_connectWithIsDeprecated N/A N/A N/A self assertEqual N/A len warnings 1 N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A category DeprecationWarning N/A N/A N/A self assertEqual connectWith is deprecated since Twisted 10.1.  See IReactorFDSet. N/A N/A warnings N/A 0 N/A message N/A N/A TCPPortTests N/A TestCase N/A N/A 
    Tests for L{twisted.internet.tcp.Port}.
     N/A N/A N/A isinstance reactor PosixReactorBase N/A N/A skip Non-posixbase reactor test_connectionLostFailed N/A N/A self N/A N/A N/A 
        L{Port.stopListening} returns a L{Deferred} which errbacks if
        L{Port.connectionLost} raises an exception.
         N/A port N/A Port 12345 N/A ServerFactory N/A N/A port connected True N/A N/A port connectionLost N/A N/A N/A reason N/A N/A 1 0 N/A N/A N/A self assertFailure N/A N/A port stopListening ZeroDivisionError N/A N/A TimeoutReportReactor N/A PosixReactorBase N/A N/A 
    A reactor which is just barely runnable and which cannot monitor any
    readers or writers, and which fires a L{Deferred} with the timeout
    passed to its C{doIteration} method as soon as that method is invoked.
     __init__ N/A N/A self N/A N/A N/A N/A N/A PosixReactorBase __init__ self N/A N/A self iterationTimeout N/A Deferred N/A N/A self now 100 N/A addReader N/A N/A self reader N/A N/A N/A 
        Ignore the reader.  This is necessary because the waker will be
        added.  However, we won't actually monitor it for any events.
         N/A removeAll N/A N/A self N/A N/A N/A 
        There are no readers or writers, so there is nothing to remove.
        This will be called when the reactor stops, though, so it must be
        implemented.
         N/A N/A N/A seconds N/A N/A self N/A N/A N/A 
        Override the real clock with a deterministic one that can be easily
        controlled in a unit test.
         N/A N/A self now N/A doIteration N/A N/A self timeout N/A N/A N/A d N/A self iterationTimeout N/A N/A d None N/A N/A N/A self iterationTimeout None N/A N/A N/A d callback timeout N/A N/A IterationTimeoutTests N/A TestCase N/A N/A 
    Tests for the timeout argument L{PosixReactorBase.run} calls
    L{PosixReactorBase.doIteration} with in the presence of various delayed
    calls.
     _checkIterationTimeout N/A N/A self reactor N/A N/A N/A timeout N/A N/A N/A N/A N/A reactor iterationTimeout addCallback N/A timeout append N/A N/A N/A N/A reactor iterationTimeout addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A reactor run N/A N/A timeout N/A 0 N/A test_noCalls N/A N/A self N/A N/A N/A 
        If there are no delayed calls, C{doIteration} is called with a
        timeout of C{None}.
         N/A reactor N/A TimeoutReportReactor N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout None N/A test_delayedCall N/A N/A self N/A N/A N/A 
        If there is a delayed call, C{doIteration} is called with a timeout
        which is the difference between the current time and the time at
        which that call is to run.
         N/A reactor N/A TimeoutReportReactor N/A N/A N/A reactor callLater 100 N/A N/A N/A N/A None N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout 100 N/A test_timePasses N/A N/A self N/A N/A N/A 
        If a delayed call is scheduled and then some time passes, the
        timeout passed to C{doIteration} is reduced by the amount of time
        which passed.
         N/A reactor N/A TimeoutReportReactor N/A N/A N/A reactor callLater 100 N/A N/A N/A N/A None N/A N/A reactor now 25 N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout 75 N/A test_multipleDelayedCalls N/A N/A self N/A N/A N/A 
        If there are several delayed calls, C{doIteration} is called with a
        timeout which is the difference between the current time and the
        time at which the earlier of the two calls is to run.
         N/A reactor N/A TimeoutReportReactor N/A N/A N/A reactor callLater 50 N/A N/A N/A N/A None N/A N/A N/A reactor callLater 10 N/A N/A N/A N/A None N/A N/A N/A reactor callLater 100 N/A N/A N/A N/A None N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout 10 N/A test_resetDelayedCall N/A N/A self N/A N/A N/A 
        If a delayed call is reset, the timeout passed to C{doIteration} is
        based on the interval between the time when reset is called and the
        new delay of the call.
         N/A reactor N/A TimeoutReportReactor N/A call N/A N/A reactor callLater 50 N/A N/A N/A N/A None N/A N/A reactor now 25 N/A N/A N/A call reset 15 N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout 15 N/A test_delayDelayedCall N/A N/A self N/A N/A N/A 
        If a delayed call is re-delayed, the timeout passed to
        C{doIteration} is based on the remaining time before the call would
        have been made and the additional amount of time passed to the delay
        method.
         N/A reactor N/A TimeoutReportReactor N/A call N/A N/A reactor callLater 50 N/A N/A N/A N/A None N/A N/A reactor now 10 N/A N/A N/A call delay 20 N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout 60 N/A test_cancelDelayedCall N/A N/A self N/A N/A N/A 
        If the only delayed call is canceled, C{None} is the timeout passed
        to C{doIteration}.
         N/A reactor N/A TimeoutReportReactor N/A call N/A N/A reactor callLater 50 N/A N/A N/A N/A None N/A N/A N/A call cancel N/A timeout N/A N/A self _checkIterationTimeout reactor N/A N/A N/A self assertEqual timeout None N/A N/A ConnectedDatagramPortTestCase N/A TestCase N/A N/A 
    Test connected datagram UNIX sockets.
     N/A N/A skipSockets None N/A N/A skip skipSockets test_connectionFailedDoesntCallLoseConnection N/A N/A self N/A N/A N/A 
        L{ConnectedDatagramPort} does not call the deprecated C{loseConnection}
        in L{ConnectedDatagramPort.connectionFailed}.
         loseConnection N/A N/A N/A N/A N/A 
            Dummy C{loseConnection} method. C{loseConnection} is deprecated and
            should not get called.
             N/A N/A N/A self fail loseConnection is deprecated and should not get called. N/A N/A port N/A N/A unix ConnectedDatagramPort None N/A ClientProto N/A N/A port loseConnection loseConnection N/A N/A N/A port connectionFailed goodbye N/A test_connectionFailedCallsStopListening N/A N/A self N/A N/A N/A 
        L{ConnectedDatagramPort} calls L{ConnectedDatagramPort.stopListening}
        instead of the deprecated C{loseConnection} in
        L{ConnectedDatagramPort.connectionFailed}.
         N/A N/A self called False stopListening N/A N/A N/A N/A N/A 
            Dummy C{stopListening} method.
             N/A N/A self called True N/A N/A port N/A N/A unix ConnectedDatagramPort None N/A ClientProto N/A N/A port stopListening stopListening N/A N/A N/A port connectionFailed goodbye N/A N/A N/A self assertEqual N/A self called True N/A N/A