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

Class 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]
 
_addClassOrModuleLevelException(self, result, exception, errorName)
 
_get_previous_module(self, result)
 
_handleClassSetUp(self, test, result)
 
_handleModuleFixture(self, test, result)
 
_handleModuleTearDown(self, result)
 
_tearDownPreviousClass(self, test, result)
 
debug(self)
Run the tests without collecting errors in a TestResult
 
run(self, result, debug=False)

Inherited from BaseTestSuite: __call__, __eq__, __init__, __iter__, __ne__, __repr__, addTest, addTests, countTestCases

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from BaseTestSuite: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

debug(self)

 

Run the tests without collecting errors in a TestResult

Overrides: BaseTestSuite.debug

run(self, result, debug=False)

 
Overrides: BaseTestSuite.run