Module Expr Str Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args defaults body Expr Str TryExcept body Expr BinOpDiv Num Num handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad Num Lambda arguments args defaults Call AttributeLoad NameLoad attr Call NameLoad decorator_list decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str TupleLoad Str Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str TupleLoad Call AttributeLoad NameLoad attr Num Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword TupleLoad keyword Call AttributeLoad NameLoad attr keyword Num keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str TupleLoad Call AttributeLoad NameLoad attr Num Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str TupleLoad Call AttributeLoad NameLoad attr Num Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num NameLoad decorator_list decorator_list
N/A N/A 
Test the interaction between trial and errors logged during test run.
 N/A time twisted.internet reactor task twisted.python failure log twisted.trial unittest reporter makeFailure N/A N/A N/A N/A N/A 
    Return a new, realistic failure.
     N/A N/A N/A N/A 1 0 N/A N/A N/A ZeroDivisionError N/A N/A f N/A N/A failure Failure N/A f N/A Mask N/A object N/A N/A 
    Hide C{MockTest}s from Trial's automatic test finder.
     MockTest N/A N/A unittest TestCase N/A test_silent N/A N/A self N/A N/A N/A 
            Don't log any errors.
             N/A test_single N/A N/A self N/A N/A N/A 
            Log a single error.
             N/A N/A N/A log err N/A makeFailure N/A test_double N/A N/A self N/A N/A N/A 
            Log two errors.
             N/A N/A N/A log err N/A makeFailure N/A N/A N/A log err N/A makeFailure N/A test_inCallback N/A N/A self N/A N/A N/A 
            Log an error in an asynchronous callback.
             N/A N/A N/A task deferLater reactor 0 N/A N/A N/A N/A N/A N/A log err N/A makeFailure N/A N/A N/A TestObserver N/A N/A unittest TestCase N/A N/A 
    Tests for L{unittest._LogObserver}, a helper for the implementation of
    L{TestCase.flushLoggedErrors}.
     setUp N/A N/A self N/A N/A N/A N/A self result N/A N/A reporter TestResult N/A N/A self observer N/A N/A unittest _LogObserver N/A test_msg N/A N/A self N/A N/A N/A 
        Test that a standard log message doesn't go anywhere near the result.
         N/A N/A N/A N/A self observer gotEvent N/A message time isError system N/A some message N/A N/A time time 0 - N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A N/A test_error N/A N/A self N/A N/A N/A 
        Test that an observed error gets added to the result
         N/A f N/A makeFailure N/A N/A N/A N/A self observer gotEvent N/A message time isError system failure why N/A N/A N/A time time 1 - f None N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A f N/A test_flush N/A N/A self N/A N/A N/A 
        Check that flushing the observer with no args removes all errors.
         N/A N/A N/A self test_error N/A flushed N/A N/A N/A self observer flushErrors N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A N/A N/A N/A self assertEqual N/A len flushed 1 N/A N/A N/A self assertTrue N/A N/A N/A flushed N/A 0 check ZeroDivisionError N/A _makeRuntimeFailure N/A N/A self N/A N/A N/A N/A N/A failure Failure N/A RuntimeError test error N/A test_flushByType N/A N/A self N/A N/A N/A 
        Check that flushing the observer remove all failures of the given type.
         N/A N/A N/A self test_error N/A f N/A N/A self _makeRuntimeFailure N/A N/A N/A N/A self observer gotEvent N/A dict message N/A time N/A N/A time time isError 1 system - failure f why None N/A flushed N/A N/A N/A self observer flushErrors ZeroDivisionError N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A f N/A N/A N/A self assertEqual N/A len flushed 1 N/A N/A N/A self assertTrue N/A N/A N/A flushed N/A 0 check ZeroDivisionError N/A test_ignoreErrors N/A N/A self N/A N/A N/A 
        Check that C{_ignoreErrors} actually causes errors to be ignored.
         N/A N/A N/A N/A self observer _ignoreErrors ZeroDivisionError N/A f N/A makeFailure N/A N/A N/A N/A self observer gotEvent N/A message time isError system failure why N/A N/A N/A time time 1 - f None N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A N/A test_clearIgnores N/A N/A self N/A N/A N/A 
        Check that C{_clearIgnores} ensures that previously ignored errors
        get captured.
         N/A N/A N/A N/A self observer _ignoreErrors ZeroDivisionError N/A N/A N/A N/A self observer _clearIgnores N/A f N/A makeFailure N/A N/A N/A N/A self observer gotEvent N/A message time isError system failure why N/A N/A N/A time time 1 - f None N/A N/A N/A self assertEqual N/A N/A N/A self observer getErrors N/A f N/A N/A LogErrors N/A N/A unittest TestCase N/A N/A 
    High-level tests demonstrating the expected behaviour of logged errors
    during tests.
     setUp N/A N/A self N/A N/A N/A N/A self result N/A N/A reporter TestResult N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self flushLoggedErrors ZeroDivisionError N/A test_singleError N/A N/A self N/A N/A N/A 
        Test that a logged error gets reported as a test error.
         N/A test N/A N/A Mask MockTest test_single N/A N/A test N/A self result N/A N/A N/A self assertEqual N/A len N/A N/A self result errors 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self result errors N/A 0 N/A 1 check ZeroDivisionError N/A N/A N/A N/A self result errors N/A 0 N/A 1 N/A test_twoErrors N/A N/A self N/A N/A N/A 
        Test that when two errors get logged, they both get reported as test
        errors.
         N/A test N/A N/A Mask MockTest test_double N/A N/A test N/A self result N/A N/A N/A self assertEqual N/A len N/A N/A self result errors 2 N/A test_inCallback N/A N/A self N/A N/A N/A 
        Test that errors logged in callbacks get reported as test errors.
         N/A test N/A N/A Mask MockTest test_inCallback N/A N/A test N/A self result N/A N/A N/A self assertEqual N/A len N/A N/A self result errors 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self result errors N/A 0 N/A 1 check ZeroDivisionError N/A N/A N/A N/A self result errors N/A 0 N/A 1 N/A test_errorsIsolated N/A N/A self N/A N/A N/A 
        Check that an error logged in one test doesn't fail the next test.
         N/A t1 N/A N/A Mask MockTest test_single N/A t2 N/A N/A Mask MockTest test_silent N/A N/A t1 N/A self result N/A N/A t2 N/A self result N/A N/A N/A self assertEqual N/A len N/A N/A self result errors 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A self result errors N/A 0 N/A 0 t1 N/A N/A