Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Test framework core. More...
Public Member Functions | |
def | __init__ |
def | startTest |
def | stopTest |
def | addError |
def | addFailure |
def | addSuccess |
def | wasSuccessful |
def | stop |
def | __repr__ |
Data Fields | |
failures | |
errors | |
testsRun | |
shouldStop | |
Test framework core.
Holder for test result information. Test results are automatically managed by the TestCase and TestSuite classes, and do not need to be explicitly manipulated by writers of tests. Each instance holds the total number of tests run, and collections of failures and errors that occurred among those test runs. The collections contain tuples of (testcase, exceptioninfo), where exceptioninfo is the formatted traceback of the error that occurred.
Definition at line 62 of file unittest.py.
def __repr__ | ( | self) |
Definition at line 114 of file unittest.py.
References SymbolTable.__class__, TestResult.errors, StreamWriter.errors, ParsingError.errors, StreamReader.errors, StreamReaderWriter.errors, StreamRecoder.errors, TestResult.failures, and TestResult.testsRun.
def addError | ( | self, | |
test, | |||
err | |||
) |
Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().
Definition at line 87 of file unittest.py.
def addFailure | ( | self, | |
test, | |||
err | |||
) |
Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().
Definition at line 93 of file unittest.py.
References TestResult._exc_info_to_string().
def addSuccess | ( | self, | |
test | |||
) |
Definition at line 98 of file unittest.py.
def startTest | ( | self, | |
test | |||
) |
Definition at line 79 of file unittest.py.
References TestResult.testsRun.
def stop | ( | self) |
Definition at line 106 of file unittest.py.
References string.join(), and TestResult.shouldStop.
def stopTest | ( | self, | |
test | |||
) |
Definition at line 83 of file unittest.py.
def wasSuccessful | ( | self) |
Definition at line 102 of file unittest.py.
errors |
Definition at line 75 of file unittest.py.
failures |
Definition at line 74 of file unittest.py.
shouldStop |
Definition at line 77 of file unittest.py.
testsRun |
Definition at line 76 of file unittest.py.