Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Lambda arguments args defaults AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Raise Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Pass decorator_list Return Call NameLoad NameLoad Lambda arguments args defaults NameLoad TupleLoad Dict NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Pass decorator_list Assign NameStore Call NameLoad Num NameLoad TupleLoad Num Dict Str Num NameLoad NameLoad Lambda arguments args defaults Num Assign NameStore Dict NameLoad Num FunctionDef arguments args NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Tests for L{twisted.internet.base}.
 N/A socket Queue Queue zope.interface implements twisted.python.threadpool ThreadPool twisted.python.util setIDFunction twisted.internet.interfaces IReactorTime IReactorThreads twisted.internet.error DNSLookupError twisted.internet.base ThreadedResolver DelayedCall twisted.internet.task Clock twisted.trial.unittest TestCase FakeReactor N/A object N/A N/A 
    A fake reactor implementation which just supports enough reactor APIs for
    L{ThreadedResolver}.
     N/A N/A implements IReactorTime IReactorThreads __init__ N/A N/A self N/A N/A N/A N/A self _clock N/A Clock N/A N/A self callLater N/A N/A self _clock callLater N/A N/A self _threadpool N/A ThreadPool N/A N/A N/A N/A self _threadpool start N/A N/A self getThreadPool N/A N/A N/A N/A N/A self _threadpool N/A N/A self _threadCalls N/A Queue N/A callFromThread N/A N/A self f N/A args kwargs N/A N/A N/A N/A N/A self _threadCalls put N/A f args kwargs N/A _runThreadCalls N/A N/A self N/A N/A N/A N/A f args kwargs N/A N/A N/A self _threadCalls get N/A N/A f args kwargs N/A _stop N/A N/A self N/A N/A N/A N/A N/A N/A self _threadpool stop N/A N/A ThreadedResolverTests N/A TestCase N/A N/A 
    Tests for L{ThreadedResolver}.
     test_success N/A N/A self N/A N/A N/A 
        L{ThreadedResolver.getHostByName} returns a L{Deferred} which fires
        with the value returned by the call to L{socket.gethostbyname} in the
        threadpool of the reactor passed to L{ThreadedResolver.__init__}.
         N/A ip 10.0.0.17 N/A name foo.bar.example.com N/A timeout 30 N/A reactor N/A FakeReactor N/A N/A N/A self addCleanup N/A reactor _stop N/A lookedUp N/A N/A resolvedTo N/A fakeGetHostByName N/A N/A name N/A N/A N/A N/A N/A lookedUp append name N/A ip N/A N/A N/A N/A self patch socket gethostbyname fakeGetHostByName N/A resolver N/A ThreadedResolver reactor N/A d N/A N/A resolver getHostByName name N/A timeout N/A N/A N/A d addCallback N/A resolvedTo append N/A N/A N/A reactor _runThreadCalls N/A N/A N/A self assertEqual lookedUp N/A name N/A N/A N/A self assertEqual resolvedTo N/A ip N/A N/A N/A N/A reactor _clock advance N/A timeout 1 N/A N/A N/A self assertEqual N/A N/A reactor _clock calls N/A N/A test_failure N/A N/A self N/A N/A N/A 
        L{ThreadedResolver.getHostByName} returns a L{Deferred} which fires a
        L{Failure} if the call to L{socket.gethostbyname} raises an exception.
         N/A timeout 30 N/A reactor N/A FakeReactor N/A N/A N/A self addCleanup N/A reactor _stop fakeGetHostByName N/A N/A name N/A N/A N/A N/A IOError ENOBUFS (this is a funny joke) N/A N/A N/A N/A self patch socket gethostbyname fakeGetHostByName N/A failedWith N/A N/A resolver N/A ThreadedResolver reactor N/A d N/A N/A resolver getHostByName some.name N/A timeout N/A N/A N/A self assertFailure d DNSLookupError N/A N/A N/A d addCallback N/A failedWith append N/A N/A N/A reactor _runThreadCalls N/A N/A N/A self assertEqual N/A len failedWith 1 N/A N/A N/A N/A reactor _clock advance N/A timeout 1 N/A N/A N/A self assertEqual N/A N/A reactor _clock calls N/A N/A test_timeout N/A N/A self N/A N/A N/A 
        If L{socket.gethostbyname} does not complete before the specified
        timeout elapsed, the L{Deferred} returned by
        L{ThreadedResolver.getHostByBame} fails with L{DNSLookupError}.
         N/A timeout 10 N/A reactor N/A FakeReactor N/A N/A N/A self addCleanup N/A reactor _stop N/A result N/A Queue fakeGetHostByName N/A N/A name N/A N/A N/A N/A N/A result get N/A N/A N/A N/A self patch socket gethostbyname fakeGetHostByName N/A failedWith N/A N/A resolver N/A ThreadedResolver reactor N/A d N/A N/A resolver getHostByName some.name N/A timeout N/A N/A N/A self assertFailure d DNSLookupError N/A N/A N/A d addCallback N/A failedWith append N/A N/A N/A N/A reactor _clock advance N/A timeout 1 N/A N/A N/A self assertEqual failedWith N/A N/A N/A N/A N/A reactor _clock advance 1 N/A N/A N/A self assertEqual N/A len failedWith 1 N/A N/A N/A result put N/A IOError The I/O was errorful N/A N/A DelayedCallTests N/A TestCase N/A N/A 
    Tests for L{DelayedCall}.
     _getDelayedCallAt N/A N/A self time N/A N/A N/A 
        Get a L{DelayedCall} instance at a given C{time}.
        
        @param time: The absolute time at which the returned L{DelayedCall}
            will be scheduled.
         noop N/A N/A call N/A N/A N/A N/A N/A N/A DelayedCall time N/A N/A N/A N/A None N/A N/A noop noop None N/A setUp N/A N/A self N/A N/A N/A 
        Create two L{DelayedCall} instanced scheduled to run at different
        times.
         N/A N/A self zero N/A N/A self _getDelayedCallAt 0 N/A N/A self one N/A N/A self _getDelayedCallAt 1 N/A test_str N/A N/A self N/A N/A N/A 
        The string representation of a L{DelayedCall} instance, as returned by
        C{str}, includes the unsigned id of the instance, as well as its state,
        the function to be called, and the function arguments.
         nothing N/A N/A N/A N/A N/A N/A N/A dc N/A DelayedCall 12 nothing N/A 3 N/A A 5 None None N/A N/A N/A N/A 1.5 N/A ids N/A dc 200 fakeID N/A N/A obj N/A N/A N/A N/A N/A N/A ids N/A obj N/A N/A N/A N/A TypeError KeyError N/A N/A N/A id obj N/A N/A N/A N/A self addCleanup setIDFunction N/A setIDFunction fakeID N/A N/A N/A self assertEqual N/A str dc <DelayedCall 0xc8 [10.5s] called=0 cancelled=0 nothing(3, A=5)> N/A test_lt N/A N/A self N/A N/A N/A 
        For two instances of L{DelayedCall} C{a} and C{b}, C{a < b} is true
        if and only if C{a} is scheduled to run before C{b}.
         N/A N/A zero one N/A N/A self zero N/A self one N/A N/A N/A self assertTrue N/A zero one N/A N/A N/A self assertFalse N/A one zero N/A N/A N/A self assertFalse N/A zero zero N/A N/A N/A self assertFalse N/A one one N/A test_le N/A N/A self N/A N/A N/A 
        For two instances of L{DelayedCall} C{a} and C{b}, C{a <= b} is true
        if and only if C{a} is scheduled to run before C{b} or at the same
        time as C{b}.
         N/A N/A zero one N/A N/A self zero N/A self one N/A N/A N/A self assertTrue N/A zero one N/A N/A N/A self assertFalse N/A one zero N/A N/A N/A self assertTrue N/A zero zero N/A N/A N/A self assertTrue N/A one one N/A test_gt N/A N/A self N/A N/A N/A 
        For two instances of L{DelayedCall} C{a} and C{b}, C{a > b} is true
        if and only if C{a} is scheduled to run after C{b}.
         N/A N/A zero one N/A N/A self zero N/A self one N/A N/A N/A self assertTrue N/A one zero N/A N/A N/A self assertFalse N/A zero one N/A N/A N/A self assertFalse N/A zero zero N/A N/A N/A self assertFalse N/A one one N/A test_ge N/A N/A self N/A N/A N/A 
        For two instances of L{DelayedCall} C{a} and C{b}, C{a > b} is true
        if and only if C{a} is scheduled to run after C{b} or at the same
        time as C{b}.
         N/A N/A zero one N/A N/A self zero N/A self one N/A N/A N/A self assertTrue N/A one zero N/A N/A N/A self assertFalse N/A zero one N/A N/A N/A self assertTrue N/A zero zero N/A N/A N/A self assertTrue N/A one one N/A test_eq N/A N/A self N/A N/A N/A 
        A L{DelayedCall} instance is only equal to itself.
         N/A N/A N/A self assertFalse N/A N/A self zero N/A self one N/A N/A N/A self assertTrue N/A N/A self zero N/A self zero N/A N/A N/A self assertTrue N/A N/A self one N/A self one N/A test_ne N/A N/A self N/A N/A N/A 
        A L{DelayedCall} instance is not equal to any other object.
         N/A N/A N/A self assertTrue N/A N/A self zero N/A self one N/A N/A N/A self assertFalse N/A N/A self zero N/A self zero N/A N/A N/A self assertFalse N/A N/A self one N/A self one N/A N/A