Module Expr Str ImportFrom alias alias alias Import alias Import alias ImportFrom alias Import alias TryExcept body ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias identifier handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body Return Call NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults NameLoad TupleLoad Num Dict Str Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Num Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad NameLoad NameLoad NameLoad TupleLoad Num Dict Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad With Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad With Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults ListLoad NameLoad Num Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults ListLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Call NameLoad keyword ListLoad Num Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr 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 NameLoad Str Call NameLoad keyword ListLoad Num Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Dict Str Str Str Str Str ListLoad Num Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Call NameLoad keyword ListLoad Num Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Call NameLoad keyword ListLoad Num Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Dict Str Str Str Str Str Str Str ListLoad Num Num Str Str Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Call NameLoad keyword ListLoad Num Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad NameLoad NameLoad TupleLoad Num Dict Str Num NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad NameLoad NameLoad NameLoad NameLoad TupleLoad Num Dict Str Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad NameLoad NameLoad TupleLoad Num Dict Str Num TupleLoad Num Dict Str Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call Call NameLoad Call NameLoad ListLoad NameLoad Str Call NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Expr Call Call NameLoad Call NameLoad ListLoad Str Str Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Expr Call Call NameLoad Call NameLoad ListLoad Str Str Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Call Call NameLoad Call NameLoad ListLoad Str Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad ListLoad Str Str Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Expr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad ListLoad Str Str Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call Call NameLoad Call NameLoad ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num keyword Num attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{eliot.twisted}.
 __future__ absolute_import unicode_literals print_function N/A traceback N/A sys functools wraps N/A json N/A N/A twisted.internet.defer Deferred succeed fail twisted.trial.unittest TestCase twisted.python.failure Failure twisted.python.log LogPublisher textFromEventDict twisted.python log twlog N/A N/A N/A ImportError N/A N/A TestCase object N/A twisted DeferredContext AlreadyFinished _passthrough redirectLogsForTrial _RedirectLogsForTrial _action startAction currentAction Action TaskLevel _output MemoryLogger Logger _message Message testing assertContainsFields N/A removeDestination addDestination _traceback writeTraceback common FakeSys PassthroughTests N/A TestCase N/A N/A 
    Tests for L{_passthrough}.
     test_passthrough N/A N/A self N/A N/A N/A 
        L{_passthrough} returns the passed-in value.
         N/A obj N/A object N/A N/A N/A self assertIs obj N/A _passthrough obj N/A N/A withActionContext N/A N/A f N/A N/A N/A 
    Decorator that calls a function with an action context.

    @param f: A function.
     N/A logger N/A MemoryLogger N/A action N/A startAction logger test test N/A N/A self N/A N/A N/A N/A N/A action context N/A N/A N/A f self N/A N/A wraps f N/A test N/A DeferredContextTests N/A TestCase N/A N/A 
    Tests for L{DeferredContext}.
     test_requireContext N/A N/A self N/A N/A N/A 
        L{DeferredContext} raises a L{RuntimeError} if it is called without an
        action context.
         N/A N/A N/A self assertRaises RuntimeError DeferredContext N/A Deferred N/A test_result N/A N/A self N/A N/A N/A 
        The passed-in L{Deferred} is available as the L{DeferredContext}'s
        C{result} attribute.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A self assertIs N/A context result result N/A withActionContext test_addCallbacksCallbackToDeferred N/A N/A self N/A N/A N/A 
        L{DeferredContext.addCallbacks} passes the given callback and its
        corresponding arguments to the wrapped L{Deferred}'s
        C{addCallbacks}.
         N/A called N/A f N/A N/A value x y N/A N/A N/A N/A N/A called append N/A value x y N/A N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A context addCallbacks f N/A N/A N/A x N/A None N/A 1 N/A y 2 N/A N/A N/A result callback 0 N/A N/A N/A self assertEqual called N/A N/A 0 1 2 N/A withActionContext test_addCallbacksErrbackToDeferred N/A N/A self N/A N/A N/A 
        L{DeferredContext.addCallbacks} passes the given errback and its
        corresponding arguments to the wrapped L{Deferred}'s
        C{addCallbacks}.
         N/A called N/A f N/A N/A value x y N/A N/A N/A N/A N/A value trap RuntimeError N/A N/A N/A called append N/A x y N/A N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A context addCallbacks N/A N/A N/A x N/A None f None None N/A 1 N/A y 2 N/A N/A N/A result errback N/A RuntimeError N/A N/A N/A self assertEqual called N/A N/A 1 2 N/A withActionContext test_addCallbacksReturnSelf N/A N/A self N/A N/A N/A 
        L{DeferredContext.addCallbacks} returns the L{DeferredContext}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A self assertIs context N/A N/A context addCallbacks N/A N/A N/A x N/A None N/A N/A N/A x N/A None N/A withActionContext test_addCallbacksCallbackContext N/A N/A self N/A N/A N/A 
        L{DeferedContext.addCallbacks} adds a callback that runs in context of
        action that the L{DeferredContext} was created with.
         N/A logger N/A MemoryLogger N/A action1 N/A startAction logger test N/A action2 N/A startAction logger test N/A context N/A N/A d N/A succeed None N/A N/A N/A action1 context N/A N/A d N/A DeferredContext d N/A N/A N/A action2 context N/A N/A N/A N/A d addCallbacks N/A N/A N/A x N/A N/A N/A context append N/A currentAction N/A N/A N/A x N/A x N/A N/A N/A self assertEqual context N/A action1 N/A test_addCallbacksErrbackContext N/A N/A self N/A N/A N/A 
        L{DeferedContext.addCallbacks} adds an errback that runs in context of
        action that the L{DeferredContext} was created with.
         N/A logger N/A MemoryLogger N/A action1 N/A startAction logger test N/A action2 N/A startAction logger test N/A context N/A N/A d N/A fail N/A RuntimeError N/A N/A N/A action1 context N/A N/A d N/A DeferredContext d N/A N/A N/A action2 context N/A N/A N/A N/A d addCallbacks N/A N/A N/A x N/A x N/A N/A N/A x N/A N/A N/A context append N/A currentAction N/A N/A N/A self assertEqual context N/A action1 N/A test_addCallbacksCallbackResult N/A N/A self N/A N/A N/A 
        A callback added with DeferredContext.addCallbacks has its result passed
        on to the next callback.
         N/A d N/A succeed 0 N/A d N/A DeferredContext d N/A N/A N/A d addCallbacks N/A N/A N/A x N/A N/A x 1 N/A N/A N/A x N/A x N/A N/A N/A self assertEqual N/A N/A self successResultOf d N/A 0 1 N/A withActionContext test_addCallbacksErrbackResult N/A N/A self N/A N/A N/A 
        An errback added with DeferredContext.addCallbacks has its result passed
        on to the next callback.
         N/A exception N/A ZeroDivisionError N/A d N/A fail exception N/A d N/A DeferredContext d N/A N/A N/A d addCallbacks N/A N/A N/A x N/A x N/A N/A N/A x N/A N/A N/A x value 1 N/A N/A N/A self assertEqual N/A N/A self successResultOf d N/A exception 1 N/A withActionContext test_addActionFinishNoImmediateLogging N/A N/A self N/A N/A N/A 
        L{DeferredContext.addActionFinish} does not log anything if the
        L{Deferred} hasn't fired yet.
         N/A d N/A Deferred N/A logger N/A MemoryLogger N/A action N/A Action logger uuid N/A TaskLevel level N/A 1 sys:me N/A N/A N/A action context N/A N/A N/A N/A N/A DeferredContext d addActionFinish N/A N/A N/A self assertFalse N/A logger messages N/A test_addActionFinishSuccess N/A N/A self N/A N/A N/A 
        When the L{Deferred} referred to by L{DeferredContext.addActionFinish}
        fires successfully, a finish message is logged.
         N/A d N/A Deferred N/A logger N/A MemoryLogger N/A action N/A Action logger uuid N/A TaskLevel level N/A 1 sys:me N/A N/A N/A action context N/A N/A N/A N/A N/A DeferredContext d addActionFinish N/A N/A N/A d callback result N/A N/A assertContainsFields self N/A N/A logger messages N/A 0 N/A task_uuid task_level action_type action_status uuid N/A 1 1 sys:me succeeded N/A test_addActionFinishSuccessPassThrough N/A N/A self N/A N/A N/A 
        L{DeferredContext.addActionFinish} passes through a successful result
        unchanged.
         N/A d N/A Deferred N/A logger N/A MemoryLogger N/A action N/A Action logger uuid N/A TaskLevel level N/A 1 sys:me N/A N/A N/A action context N/A N/A N/A N/A N/A DeferredContext d addActionFinish N/A N/A N/A d callback result N/A result N/A N/A N/A N/A d addCallback N/A result append N/A N/A N/A self assertEqual result N/A result N/A test_addActionFinishFailure N/A N/A self N/A N/A N/A 
        When the L{Deferred} referred to in L{DeferredContext.addActionFinish}
        fires with an exception, a finish message is logged.
         N/A d N/A Deferred N/A logger N/A MemoryLogger N/A action N/A Action logger uuid N/A TaskLevel level N/A 1 sys:me N/A N/A N/A action context N/A N/A N/A N/A N/A DeferredContext d addActionFinish N/A exception N/A RuntimeError because N/A N/A N/A d errback exception N/A N/A assertContainsFields self N/A N/A logger messages N/A 0 N/A task_uuid task_level action_type action_status reason exception uuid N/A 1 1 sys:me failed because N/A %s.RuntimeError N/A N/A RuntimeError __module__ N/A N/A N/A d addErrback N/A N/A N/A _ N/A None N/A test_addActionFinishFailurePassThrough N/A N/A self N/A N/A N/A 
        L{DeferredContext.addActionFinish} passes through a failed result
        unchanged.
         N/A d N/A Deferred N/A logger N/A MemoryLogger N/A action N/A Action logger uuid N/A TaskLevel level N/A 1 sys:me N/A N/A N/A action context N/A N/A N/A N/A N/A DeferredContext d addActionFinish N/A failure N/A Failure N/A RuntimeError N/A N/A N/A d errback failure N/A result N/A N/A N/A N/A d addErrback N/A result append N/A N/A N/A self assertEqual result N/A failure N/A test_addActionFinishRaisesAfterAddActionFinish N/A N/A self N/A N/A N/A 
        After L{DeferredContext.addActionFinish} is called, additional calls to
        L{DeferredContext.addActionFinish} result in a L{AlreadyFinished}
        exception.
         N/A d N/A DeferredContext N/A Deferred N/A N/A N/A d addActionFinish N/A N/A N/A self assertRaises AlreadyFinished N/A d addActionFinish N/A withActionContext test_addCallbacksRaisesAfterAddActionFinish N/A N/A self N/A N/A N/A 
        After L{DeferredContext.addActionFinish} is called, additional calls to
        L{DeferredContext.addCallbacks} result in a L{AlreadyFinished}
        exception.
         N/A d N/A DeferredContext N/A Deferred N/A N/A N/A d addActionFinish N/A N/A N/A self assertRaises AlreadyFinished N/A d addCallbacks N/A N/A N/A x N/A x N/A N/A N/A x N/A x N/A withActionContext test_addActionFinishResult N/A N/A self N/A N/A N/A 
        L{DeferredContext.addActionFinish} returns the L{Deferred}.
         N/A d N/A Deferred N/A N/A N/A self assertIs d N/A N/A N/A DeferredContext d addActionFinish N/A withActionContext test_addCallbackCallsAddCallbacks N/A N/A self N/A N/A N/A 
        L{DeferredContext.addCallback} passes its arguments on to
        L{DeferredContext.addCallbacks}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A called N/A addCallbacks N/A N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A None None None None N/A N/A N/A N/A called append N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A N/A N/A context addCallbacks addCallbacks N/A f N/A N/A N/A x y z N/A None N/A N/A N/A context addCallback f 2 z 3 N/A N/A N/A self assertEqual called N/A N/A f _passthrough N/A 2 N/A z 3 None None N/A withActionContext test_addCallbackReturnsSelf N/A N/A self N/A N/A N/A 
        L{DeferredContext.addCallback} returns the L{DeferredContext}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A self assertIs context N/A N/A context addCallback N/A N/A N/A x N/A None N/A withActionContext test_addErrbackCallsAddCallbacks N/A N/A self N/A N/A N/A 
        L{DeferredContext.addErrback} passes its arguments on to
        L{DeferredContext.addCallbacks}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A called N/A addCallbacks N/A N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A None None None None N/A N/A N/A N/A called append N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A N/A N/A context addCallbacks addCallbacks N/A f N/A N/A N/A x y z N/A None N/A N/A N/A context addErrback f 2 z 3 N/A N/A N/A self assertEqual called N/A N/A _passthrough f None None N/A 2 N/A z 3 N/A withActionContext test_addErrbackReturnsSelf N/A N/A self N/A N/A N/A 
        L{DeferredContext.addErrback} returns the L{DeferredContext}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A self assertIs context N/A N/A context addErrback N/A N/A N/A x N/A None N/A withActionContext test_addBothCallsAddCallbacks N/A N/A self N/A N/A N/A 
        L{DeferredContext.addBoth} passes its arguments on to
        L{DeferredContext.addCallbacks}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A called N/A addCallbacks N/A N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A None None None None N/A N/A N/A N/A called append N/A callback errback callbackArgs callbackKeywords errbackArgs errbackKeywords N/A N/A N/A context addCallbacks addCallbacks N/A f N/A N/A N/A x y z N/A None N/A N/A N/A context addBoth f 2 z 3 N/A N/A N/A self assertEqual called N/A N/A f f N/A 2 N/A z 3 N/A 2 N/A z 3 N/A withActionContext test_addBothReturnsSelf N/A N/A self N/A N/A N/A 
        L{DeferredContext.addBoth} returns the L{DeferredContext}.
         N/A result N/A Deferred N/A context N/A DeferredContext result N/A N/A N/A self assertIs context N/A N/A context addBoth N/A N/A N/A x N/A None N/A withActionContext N/A RedirectLogsForTrialTests N/A TestCase N/A N/A 
    Tests for L{redirectLogsForTrial}.
     assertDestinationAdded N/A N/A self programPath N/A N/A N/A 
        Assert that when running under the given program a new destination is
        added by L{redirectLogsForTrial}.

        @param programPath: A path to a program.
        @type programPath: L{str}
         N/A destination N/A N/A _RedirectLogsForTrial N/A FakeSys N/A programPath N/A LogPublisher N/A N/A N/A N/A removeDestination destination N/A N/A N/A ValueError N/A N/A N/A N/A self fail Destination was not added. N/A test_withTrial N/A N/A self N/A N/A N/A 
        When C{sys.argv[0]} is C{"trial"} a new destination is added by
        L{redirectLogsForTrial}.
         N/A N/A N/A self assertDestinationAdded trial N/A test_withAbsoluteTrialPath N/A N/A self N/A N/A N/A 
        When C{sys.argv[0]} is an absolute path ending with C{"trial"} a new
        destination is added by L{redirectLogsForTrial}.
         N/A N/A N/A self assertDestinationAdded /usr/bin/trial N/A test_withRelativeTrialPath N/A N/A self N/A N/A N/A 
        When C{sys.argv[0]} is a relative path ending with C{"trial"} a new
        destination is added by L{redirectLogsForTrial}.
         N/A N/A N/A self assertDestinationAdded ./trial N/A test_withoutTrialNoDestination N/A N/A self N/A N/A N/A 
        When C{sys.argv[0]} is not C{"trial"} no destination is added by
        L{redirectLogsForTrial}.
         N/A originalDestinations N/A N/A N/A Logger _destinations _destinations N/A N/A N/A N/A _RedirectLogsForTrial N/A FakeSys N/A myprogram.py N/A LogPublisher N/A N/A N/A self assertEqual N/A N/A Logger _destinations _destinations originalDestinations N/A test_trialAsPathNoDestination N/A N/A self N/A N/A N/A 
        When C{sys.argv[0]} has C{"trial"} as directory name but not program
        name no destination is added by L{redirectLogsForTrial}.
         N/A originalDestinations N/A N/A N/A Logger _destinations _destinations N/A N/A N/A N/A _RedirectLogsForTrial N/A FakeSys N/A ./trial/myprogram.py N/A LogPublisher N/A N/A N/A self assertEqual N/A N/A Logger _destinations _destinations originalDestinations N/A test_withoutTrialResult N/A N/A self N/A N/A N/A 
        When not running under I{trial} L{None} is returned.
         N/A N/A N/A self assertIs None N/A N/A _RedirectLogsForTrial N/A FakeSys N/A myprogram.py N/A LogPublisher N/A test_noDuplicateAdds N/A N/A self N/A N/A N/A 
        If a destination has already been added, calling L{redirectLogsForTrial}
        a second time does not add another destination.
         N/A redirect N/A _RedirectLogsForTrial N/A FakeSys N/A trial N/A LogPublisher N/A destination N/A redirect N/A N/A N/A self addCleanup removeDestination destination N/A originalDestinations N/A N/A N/A Logger _destinations _destinations N/A N/A N/A redirect N/A N/A N/A self assertEqual N/A N/A Logger _destinations _destinations originalDestinations N/A test_noDuplicateAddsResult N/A N/A self N/A N/A N/A 
        If a destination has already been added, calling L{redirectLogsForTrial}
        a second time returns L{None}.
         N/A redirect N/A _RedirectLogsForTrial N/A FakeSys N/A trial N/A LogPublisher N/A destination N/A redirect N/A N/A N/A self addCleanup removeDestination destination N/A result N/A redirect N/A N/A N/A self assertIs result None N/A redirectToLogPublisher N/A N/A self N/A N/A N/A 
        Redirect Eliot logs to a Twisted log publisher.

        @return: L{list} of L{str} - the written, formatted Twisted log
            messages will eventually be added to it.
         N/A written N/A N/A publisher N/A LogPublisher N/A N/A N/A publisher addObserver N/A N/A N/A m N/A N/A N/A written append N/A textFromEventDict m N/A destination N/A N/A _RedirectLogsForTrial N/A FakeSys N/A trial publisher N/A N/A N/A self addCleanup removeDestination destination N/A written N/A redirectToList N/A N/A self N/A N/A N/A 
        Redirect Eliot logs to a list.

        @return: L{list} that will have eventually have the written Eliot
            messages added to it.
         N/A written N/A N/A destination N/A written append N/A N/A addDestination destination N/A N/A N/A self addCleanup removeDestination destination N/A written N/A test_normalMessages N/A N/A self N/A N/A N/A 
        Regular eliot messages are pretty-printed to the given L{LogPublisher}.
         N/A writtenToTwisted N/A N/A self redirectToLogPublisher N/A written N/A N/A self redirectToList N/A logger N/A Logger N/A N/A N/A N/A N/A Message new x 123 y 456 write logger N/A N/A N/A self assertEqual writtenToTwisted N/A N/A ELIOT: %s N/A N/A N/A json dumps N/A written N/A 0 N/A test_tracebackMessages N/A N/A self N/A N/A N/A 
        Traceback eliot messages are written to the given L{LogPublisher} with
        the traceback formatted for easier reading.
         N/A writtenToTwisted N/A N/A self redirectToLogPublisher N/A written N/A N/A self redirectToList N/A logger N/A Logger raiser N/A N/A N/A N/A N/A N/A RuntimeError because N/A N/A N/A N/A N/A raiser N/A N/A N/A Exception N/A N/A expectedTraceback N/A N/A traceback format_exc N/A N/A writeTraceback logger N/A lines N/A N/A expectedTraceback split N/A expectedTraceback N/A N/A join N/A l N/A l lines N/A N/A N/A l startswith N/A N/A N/A self assertEqual writtenToTwisted N/A N/A ELIOT: %s N/A N/A N/A json dumps N/A written N/A 0 N/A ELIOT Extracted Traceback:
%s N/A expectedTraceback N/A test_publicAPI N/A N/A self N/A N/A N/A 
        L{redirectLogsForTrial} is an instance of L{_RedirectLogsForTrial}.
         N/A N/A N/A self assertIsInstance redirectLogsForTrial _RedirectLogsForTrial N/A test_defaults N/A N/A self N/A N/A N/A 
        By default L{redirectLogsForTrial} looks at L{sys.argv} and
        L{twisted.python.log} for trial detection and log output.
         N/A N/A N/A self assertEqual N/A N/A redirectLogsForTrial _sys N/A redirectLogsForTrial _log N/A sys twlog N/A N/A