Base class for all tests.
| 578 | lno = 2 |
| 579 | |
| 580 | class BaseTestCase(unittest.TestCase): |
| 581 | """Base class for all tests.""" |
| 582 | |
| 583 | dry_run = dry_run |
| 584 | |
| 585 | def fail(self, msg=None): |
| 586 | # Override fail() to use 'raise from None' to avoid repetition of the |
| 587 | # error message and traceback. |
| 588 | raise self.failureException(msg) from None |
| 589 | |
| 590 | class StateTestCase(BaseTestCase): |
| 591 | """Test the step, next, return, until and quit 'set_' methods.""" |