Trees Indices Help
Trac
Package trac :: Module test :: Class TestSetup

Class TestSetup

source code

 object --+ 
 | 
unittest.suite.BaseTestSuite --+ 
 | 
 unittest.suite.TestSuite --+
 |
 TestSetup
Known Subclasses:

Test suite decorator that allows a fixture to be setup for a complete suite of test cases.
Instance Methods
run(self, result)
Setup the fixture (self.setUp), call .setFixture on all the tests, and tear down the fixture (self.tearDown). source code
setUp(self)
Sets up the fixture, and sets self.fixture if needed source code
tearDown(self)
Tears down the fixture source code

Inherited from unittest.suite.TestSuite: debug

Inherited from unittest.suite.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

Inherited from unittest.suite.BaseTestSuite: __hash__

Properties

Inherited from object: __class__

Method Details

run(self, result)

source code
Setup the fixture (self.setUp), call .setFixture on all the tests, and tear down the fixture (self.tearDown).
Overrides: unittest.suite.BaseTestSuite.run

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /