class documentation

class _XMLTestResult(unittest.TestResult):

Constructor: _XMLTestResult(classname)

View In Hierarchy

A test result class that stores result as XML.

Used by XMLTestRunner.

Method __init__ Undocumented
Method addError Undocumented
Method addFailure Undocumented
Method filter_nonprintable_text Undocumented
Method print_report Prints the XML report to the supplied stream.
Method print_report_text Prints the text report to the supplied stream.
Method startTest Undocumented
Method stopTest Undocumented
Method xml @return XML tag representing the object @rtype: xml.etree.ElementTree.Element
Instance Variable _error Undocumented
Instance Variable _failure Undocumented
Instance Variable _start_time Undocumented
Instance Variable _test_name Undocumented
Instance Variable _tests Undocumented
def __init__(self, classname):

Undocumented

def addError(self, test, err):

Undocumented

def addFailure(self, test, err):

Undocumented

def filter_nonprintable_text(self, text):

Undocumented

def print_report(self, stream, time_taken, out, err):

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

def print_report_text(self, stream, time_taken, out, err):

Prints the text 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

def startTest(self, test):

Undocumented

def stopTest(self, test):

Undocumented

def xml(self, time_taken, out, err):

@return XML tag representing the object @rtype: xml.etree.ElementTree.Element

_error =

Undocumented

_failure =

Undocumented

_start_time =

Undocumented

_test_name =

Undocumented

_tests: list =

Undocumented