Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad keyword Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad TryExcept body Expr BinOpDiv Num Num handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call NameLoad NameLoad keyword Str Expr Call NameLoad Call NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list decorator_list
N/A N/A 
Test cases for L{twisted.logger._file}.
 io StringIO zope.interface.verify verifyObject BrokenMethodImplementation twisted.trial.unittest TestCase twisted.python.failure Failure twisted.python.compat unicode _observer ILogObserver _file FileLogObserver _file textFileLogObserver FileLogObserverTests N/A TestCase N/A N/A 
    Tests for L{FileLogObserver}.
     test_interface N/A N/A self N/A N/A N/A 
        L{FileLogObserver} is an L{ILogObserver}.
         N/A N/A StringIO fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A N/A unicode e N/A N/A N/A N/A verifyObject ILogObserver observer N/A N/A N/A BrokenMethodImplementation N/A e N/A N/A N/A N/A self fail e N/A test_observeWrites N/A N/A self N/A N/A N/A 
        L{FileLogObserver} writes to the given file when it observes events.
         N/A N/A StringIO fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A N/A unicode e N/A event N/A dict x 1 N/A N/A observer event N/A N/A N/A self assertEqual N/A N/A fileHandle getvalue N/A unicode event N/A _test_observeWrites N/A N/A self what count N/A N/A N/A 
        Verify that observer performs an expected number of writes when the
        formatter returns a given value.

        @param what: the value for the formatter to return.
        @type what: L{unicode}

        @param count: the expected number of writes.
        @type count: L{int}
         N/A N/A DummyFile fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A what N/A event N/A dict x 1 N/A N/A observer event N/A N/A N/A self assertEqual N/A fileHandle writes count N/A test_observeWritesNone N/A N/A self N/A N/A N/A 
        L{FileLogObserver} does not write to the given file when it observes
        events and C{formatEvent} returns C{None}.
         N/A N/A N/A self _test_observeWrites None 0 N/A test_observeWritesEmpty N/A N/A self N/A N/A N/A 
        L{FileLogObserver} does not write to the given file when it observes
        events and C{formatEvent} returns C{u""}.
         N/A N/A N/A self _test_observeWrites 0 N/A test_observeFlushes N/A N/A self N/A N/A N/A 
        L{FileLogObserver} calles C{flush()} on the output file when it
        observes an event.
         N/A N/A DummyFile fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A N/A unicode e N/A event N/A dict x 1 N/A N/A observer event N/A N/A N/A self assertEqual N/A fileHandle flushes 1 N/A test_observeFailure N/A N/A self N/A N/A N/A 
        If the C{"log_failure"} key exists in an event, the observer appends
        the failure's traceback to the output.
         N/A N/A StringIO fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A N/A unicode e N/A N/A N/A N/A 1 0 N/A N/A N/A ZeroDivisionError N/A N/A failure N/A Failure N/A event N/A dict log_failure failure N/A N/A observer event N/A output N/A N/A fileHandle getvalue N/A N/A N/A self assertTrue N/A N/A output startswith N/A N/A {0}
Traceback  format N/A unicode event N/A N/A Incorrect output:
{0} format output N/A test_observeFailureThatRaisesInGetTraceback N/A N/A self N/A N/A N/A 
        If the C{"log_failure"} key exists in an event, and contains an object
        that raises when you call it's C{getTraceback()}, then the observer
        appends a message noting the problem, instead of raising.
         N/A N/A StringIO fileHandle N/A N/A observer N/A FileLogObserver fileHandle N/A N/A N/A e N/A N/A unicode e N/A event N/A dict log_failure N/A object N/A N/A observer event N/A output N/A N/A fileHandle getvalue N/A expected N/A N/A {0}
(UNABLE TO OBTAIN TRACEBACK FROM EVENT)
 format N/A unicode event N/A N/A N/A self assertEqual output expected N/A N/A TextFileLogObserverTests N/A TestCase N/A N/A 
    Tests for L{textFileLogObserver}.
     test_returnsFileLogObserver N/A N/A self N/A N/A N/A 
        L{textFileLogObserver} returns a L{FileLogObserver}.
         N/A N/A StringIO fileHandle N/A N/A observer N/A textFileLogObserver fileHandle N/A N/A N/A self assertIsInstance observer FileLogObserver N/A test_outFile N/A N/A self N/A N/A N/A 
        Returned L{FileLogObserver} has the correct outFile.
         N/A N/A StringIO fileHandle N/A N/A observer N/A textFileLogObserver fileHandle N/A N/A N/A self assertIs N/A observer _outFile fileHandle N/A test_timeFormat N/A N/A self N/A N/A N/A 
        Returned L{FileLogObserver} has the correct outFile.
         N/A N/A StringIO fileHandle N/A N/A observer N/A textFileLogObserver fileHandle timeFormat %f N/A N/A observer N/A dict log_format XYZZY log_time 1.23456 N/A N/A N/A self assertEqual N/A N/A fileHandle getvalue 234560 [-#-] XYZZY
 N/A N/A DummyFile N/A object N/A N/A 
    File that counts writes and flushes.
     __init__ N/A N/A self N/A N/A N/A N/A self writes 0 N/A N/A self flushes 0 N/A write N/A N/A self data N/A N/A N/A 
        Write data.

        @param data: data
        @type data: L{unicode} or L{bytes}
         N/A N/A self writes 1 N/A flush N/A N/A self N/A N/A N/A 
        Flush buffers.
         N/A N/A self flushes 1 N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A N/A