A test suite is a composite test consisting of a number of TestCases.
For use, create an instance of TestSuite, then add test case instances.
When all tests have been added, the suite can be passed to a test
runner, such as TextTestRunner. It will run the individual test cases
in the order in which they were added, aggregating the results. When
subclassing, do not forget to call the base class constructor.
Methods
|
|
__call__
__init__
__repr__
addTest
addTests
countTestCases
debug
run
|
|
__call__
|
__call__ ( self, result )
|
|
__init__
|
__init__ ( self, tests=() )
|
|
__repr__
|
__repr__ ( self )
|
|
addTest
|
addTest ( self, test )
|
|
addTests
|
addTests ( self, tests )
|
|
countTestCases
|
countTestCases ( self )
|
|
debug
|
debug ( self )
Run the tests without collecting errors in a TestResult
|
|
run
|
run ( self, result )
|
|