vantage6.common.utest.TestResult#
- class TestResult(stream, descriptions, verbosity, log)#
Bases:
TextTestResult
- __init__(stream, descriptions, verbosity, log)#
Methods
__init__
(stream, descriptions, verbosity, log)addError
(test, err)Called when an error has occurred.
addExpectedFailure
(test, err)Called when an expected failure/error occurred.
addFailure
(test, err)Called when an error has occurred.
addSkip
(test, reason)Called when a test is skipped.
addSubTest
(test, subtest, err)Called at the end of a subtest.
addSuccess
(test)Called when a test has completed successfully
addUnexpectedSuccess
(test)Called when a test was expected to fail, but succeed.
getDescription
(test)printErrorList
(flavour, errors)Called by TestRunner after test run
startTest
(test)Called when the given test is about to be run
Called once before any tests are executed.
stop
()Indicates that the tests should be aborted.
stopTest
(test)Called when the given test has been run
Called once after all tests are executed.
Tells whether or not this result was a success.
Attributes
separator1
separator2
- addError(test, err)#
Called when an error has occurred. ‘err’ is a tuple of values as returned by sys.exc_info().
- addExpectedFailure(test, err)#
Called when an expected failure/error occurred.
- addFailure(test, err)#
Called when an error has occurred. ‘err’ is a tuple of values as returned by sys.exc_info().
- addSkip(test, reason)#
Called when a test is skipped.
- addSubTest(test, subtest, err)#
Called at the end of a subtest. ‘err’ is None if the subtest ended successfully, otherwise it’s a tuple of values as returned by sys.exc_info().
- addSuccess(test)#
Called when a test has completed successfully
- addUnexpectedSuccess(test)#
Called when a test was expected to fail, but succeed.
- printErrors()#
Called by TestRunner after test run
- startTest(test)#
Called when the given test is about to be run
- startTestRun()#
Called once before any tests are executed.
See startTest for a method called before each test.
- stop()#
Indicates that the tests should be aborted.
- stopTest(test)#
Called when the given test has been run
- stopTestRun()#
Called once after all tests are executed.
See stopTest for a method called after each test.
- wasSuccessful()#
Tells whether or not this result was a success.