| commit | 677cc11523489d5814cf2c9d26e27bc6a049fd71 | [log] [tgz] |
|---|---|---|
| author | Dan Talayco <dan.talayco@bigswitch.com> | Tue Mar 27 10:28:58 2012 -0700 |
| committer | Dan Talayco <dan.talayco@bigswitch.com> | Tue Mar 27 10:29:10 2012 -0700 |
| tree | a4a105d7658e711ba10fe42d4ccdef8bdf1907a2 | |
| parent | 58106f8b92dd6d8a741d6237522ba053b7168cb1 [diff] |
Added inheritSetup method
This allows running at test from within another test. Do the
following:
sub_test = SomeTestClass() # Create an instance of the test class
sub_test.inheritSetup(self) # Inherit setup of parent
sub_test.runTest() # Run the test
Normally, only the parent's setUp and tearDown are called and
the state after the sub_test is run must be taken into account
by subsequent operations.