Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad BoolOpOr BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad TryFinally body Expr Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore Str finalbody Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Print Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call NameLoad keyword NameLoad
N/A N/A 
XML Test Runner for PyUnit
 N/A __revision__ $Id: /private/python/stdlib/xmlrunner.py 16654 2007-11-12T12:46:35.368945Z srittau  $ N/A os.path N/A re N/A sys N/A time N/A traceback N/A unittest StringIO StringIO xml.sax.saxutils escape StringIO StringIO _TestInfo N/A object N/A N/A Information about a particular test.
    
    Used by _XMLTestResult.
    
     __init__ N/A N/A self test time N/A N/A N/A _pieces N/A N/A N/A N/A test id split . N/A N/A N/A self _class N/A self _method N/A N/A N/A . join N/A _pieces N/A -1 N/A _pieces N/A -1 N/A N/A self _time time N/A N/A self _error None N/A N/A self _failure None N/A print_report N/A N/A self stream N/A N/A N/A Print information about this test case in XML format to the
        supplied stream.

         N/A N/A N/A stream write N/A   <testcase classname="%(class)s" name="%(method)s" time="%(time).4f"> N/A class method time N/A self _class N/A self _method N/A self _time N/A N/A N/A self _failure None N/A N/A N/A N/A self _print_error stream failure N/A self _failure N/A N/A N/A self _error None N/A N/A N/A N/A self _print_error stream error N/A self _error N/A N/A N/A stream write </testcase>
 N/A _print_error N/A N/A self stream tagname error N/A N/A N/A Print information from a failure or error to the supplied stream. N/A text N/A escape N/A str N/A error N/A 1 N/A N/A N/A stream write N/A N/A N/A stream write N/A     <%s type="%s">%s
 N/A tagname N/A N/A N/A issubclass N/A error N/A 0 Exception N/A N/A error N/A 0 __name__ N/A str N/A error N/A 0 text N/A tb_stream N/A StringIO N/A N/A N/A traceback print_tb N/A error N/A 2 None tb_stream N/A N/A N/A stream write N/A escape N/A N/A tb_stream getvalue N/A N/A N/A stream write N/A     </%s>
 tagname N/A N/A N/A stream write N/A N/A create_success N/A N/A test time N/A N/A N/A Create a _TestInfo instance for a successful test. N/A N/A _TestInfo test time N/A create_failure N/A N/A test time failure N/A N/A N/A Create a _TestInfo instance for a failed test. N/A info N/A _TestInfo test time N/A N/A info _failure failure N/A info N/A create_error N/A N/A test time error N/A N/A N/A Create a _TestInfo instance for an erroneous test. N/A info N/A _TestInfo test time N/A N/A info _error error N/A info N/A _XMLTestResult N/A N/A unittest TestResult N/A N/A A test result class that stores result as XML.

    Used by XMLTestRunner.

     __init__ N/A N/A self classname N/A N/A N/A N/A N/A N/A unittest TestResult __init__ self N/A N/A self _test_name classname N/A N/A self _start_time None N/A N/A self _tests N/A N/A N/A self _error None N/A N/A self _failure None N/A startTest N/A N/A self test N/A N/A N/A N/A N/A N/A unittest TestResult startTest self test N/A N/A self _error None N/A N/A self _failure None N/A N/A self _start_time N/A N/A time time N/A stopTest N/A N/A self test N/A N/A N/A time_taken N/A N/A N/A time time N/A self _start_time N/A N/A N/A N/A unittest TestResult stopTest self test N/A N/A self _error N/A N/A info N/A create_error test time_taken N/A self _error N/A N/A N/A self _failure N/A N/A info N/A create_failure test time_taken N/A self _failure N/A N/A info N/A create_success test time_taken N/A N/A N/A N/A self _tests append info N/A addError N/A N/A self test err N/A N/A N/A N/A N/A N/A unittest TestResult addError self test err N/A N/A self _error err N/A addFailure N/A N/A self test err N/A N/A N/A N/A N/A N/A unittest TestResult addFailure self test err N/A N/A self _failure err N/A print_report N/A N/A self stream time_taken out err N/A N/A N/A Prints the XML report to the supplied stream.
        
        The time the tests took to perform as well as the captured standard
        output and standard error streams must be passed in.a

         N/A N/A N/A stream write N/A <testsuite errors="%(e)d" failures="%(f)d"  N/A e f N/A len N/A self errors N/A len N/A self failures N/A N/A N/A stream write N/A name="%(n)s" tests="%(t)d" time="%(time).3f">
 N/A n t time N/A self _test_name N/A self testsRun time_taken N/A info N/A self _tests N/A N/A N/A N/A info print_report stream N/A N/A N/A stream write N/A   <system-out><![CDATA[%s]]></system-out>
 out N/A N/A N/A stream write N/A   <system-err><![CDATA[%s]]></system-err>
 err N/A N/A N/A stream write </testsuite>
 N/A N/A XMLTestRunner N/A object N/A N/A A test runner that stores results in XML format compatible with JUnit.

    XMLTestRunner(stream=None) -> XML test runner

    The XML file is written to the supplied stream. If stream is None, the
    results are stored in a file called TEST-<module>.<class>.xml in the
    current working directory (if not overridden with the path property),
    where <module> and <class> are the module and class name of the test class.

     __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _stream N/A N/A kwargs get stream N/A N/A self _filename N/A N/A kwargs get filename N/A N/A self _path . N/A run N/A N/A self test N/A N/A N/A Run the given test case or test suite. N/A class_ N/A test __class__ N/A classname N/A N/A N/A class_ __module__ . N/A class_ __name__ N/A N/A N/A self _stream None N/A N/A filename N/A TEST-%s.xml classname N/A N/A self _filename N/A N/A filename N/A self _filename N/A stream N/A file N/A N/A N/A os path join N/A self _path filename w N/A N/A N/A stream write <?xml version="1.0" encoding="utf-8"?>
 N/A N/A stream N/A self _stream N/A result N/A _XMLTestResult classname N/A start_time N/A N/A time time N/A old_stdout N/A sys stdout N/A old_stderr N/A sys stderr N/A N/A sys stdout N/A StringIO N/A N/A sys stderr N/A StringIO N/A N/A N/A N/A test result N/A N/A N/A out_s N/A N/A N/A sys stdout getvalue N/A N/A N/A AttributeError N/A N/A out_s N/A N/A N/A err_s N/A N/A N/A sys stderr getvalue N/A N/A N/A AttributeError N/A N/A err_s N/A N/A N/A sys stdout old_stdout N/A N/A sys stderr old_stderr N/A time_taken N/A N/A N/A time time start_time N/A N/A N/A result print_report stream time_taken out_s err_s N/A N/A N/A self _stream None N/A N/A N/A N/A stream close N/A result N/A _set_path N/A N/A self path N/A N/A N/A N/A self _path path N/A N/A path N/A property N/A N/A N/A self N/A N/A self _path _set_path None The path where the XML files are stored.
            
            This property is ignored when the XML file is written to a file
            stream. N/A XMLTestRunnerTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _stream N/A StringIO N/A _try_test_run N/A N/A self test_class expected N/A N/A N/A Run the test suite against the supplied test class and compare the
        XML result against the expected XML string. Fail if the expected
        string doesn't match the actual string. All time attribute in the
        expected string should have the value "0.000". All error and failure
        messages are reduced to "Foobar".

         N/A runner N/A XMLTestRunner N/A self _stream N/A N/A N/A runner run N/A N/A unittest makeSuite test_class N/A got N/A N/A N/A self _stream getvalue N/A got N/A N/A re sub time="\d+\.\d+" time="0.000" got N/A got N/A N/A re sub (?s)<failure (.*?)>.*?</failure> <failure \1>Foobar</failure> got N/A got N/A N/A re sub (?s)<error (.*?)>.*?</error> <error \1>Foobar</error> got N/A N/A N/A self assertEqual expected got N/A test_no_tests N/A N/A self N/A N/A N/A Regression test: Check whether a test run without any tests
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="0" failures="0" name="unittest.TestSuite" tests="0" time="0.000">
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>
 N/A test_success N/A N/A self N/A N/A N/A Regression test: Check whether a test run with a successful test
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
  <testcase classname="__main__.TestTest" name="test_foo" time="0.000"></testcase>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>
 N/A test_failure N/A N/A self N/A N/A N/A Regression test: Check whether a test run with a failing test
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A N/A self assert_ False N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="0" failures="1" name="unittest.TestSuite" tests="1" time="0.000">
  <testcase classname="__main__.TestTest" name="test_foo" time="0.000">
    <failure type="exceptions.AssertionError">Foobar</failure>
  </testcase>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>
 N/A test_error N/A N/A self N/A N/A N/A Regression test: Check whether a test run with a erroneous test
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A IndexError N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="1" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
  <testcase classname="__main__.TestTest" name="test_foo" time="0.000">
    <error type="exceptions.IndexError">Foobar</error>
  </testcase>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>
 N/A test_stdout_capture N/A N/A self N/A N/A N/A Regression test: Check whether a test run with output to stdout
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A Test N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
  <testcase classname="__main__.TestTest" name="test_foo" time="0.000"></testcase>
  <system-out><![CDATA[Test
]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>
 N/A test_stderr_capture N/A N/A self N/A N/A N/A Regression test: Check whether a test run with output to stderr
        matches a previous run.
        
         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A N/A N/A sys stderr write Test
 N/A N/A N/A N/A N/A self _try_test_run TestTest <testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
  <testcase classname="__main__.TestTest" name="test_foo" time="0.000"></testcase>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[Test
]]></system-err>
</testsuite>
 N/A NullStream N/A object N/A N/A A file-like object that discards everything written to it. write N/A N/A self buffer N/A N/A N/A N/A N/A test_unittests_changing_stdout N/A N/A self N/A N/A N/A Check whether the XMLTestRunner recovers gracefully from unit tests
        that change stdout, but don't change it back properly.

         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A sys stdout N/A N/A XMLTestRunnerTest NullStream N/A N/A N/A runner N/A XMLTestRunner N/A self _stream N/A N/A N/A runner run N/A N/A unittest makeSuite TestTest N/A test_unittests_changing_stderr N/A N/A self N/A N/A N/A Check whether the XMLTestRunner recovers gracefully from unit tests
        that change stderr, but don't change it back properly.

         TestTest N/A N/A unittest TestCase N/A test_foo N/A N/A self N/A N/A N/A N/A sys stderr N/A N/A XMLTestRunnerTest NullStream N/A N/A N/A runner N/A XMLTestRunner N/A self _stream N/A N/A N/A runner run N/A N/A unittest makeSuite TestTest N/A N/A XMLTestProgram N/A N/A unittest TestProgram N/A runTests N/A N/A self N/A N/A N/A N/A N/A self testRunner None N/A N/A N/A self testRunner N/A XMLTestRunner N/A N/A N/A N/A unittest TestProgram runTests self N/A N/A N/A main XMLTestProgram N/A N/A __name__ __main__ N/A N/A N/A main module None