Module unittest :: Class TestSuite
[hide private]
[frames] | no frames]

type TestSuite

object --+
         |
        TestSuite

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.

Instance Methods [hide private]
 
__init__(self, tests=())
 
__repr__(self)
 
__str__(self)
 
__iter__(self)
 
countTestCases(self)
 
addTest(self, test)
 
addTests(self, tests)
 
run(self, result)
 
__call__(self, *args, **kwds)
 
debug(self)
Run the tests without collecting errors in a TestResult
Method Details [hide private]

__init__(self, tests=())
(Constructor)

 
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 
Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

 
Overrides: object.__str__
(inherited documentation)