testtools run() should require that setUp and tearDown are invoked
Bug #344023 reported by
Robert Collins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A common bug is to fail to invoke base class setUp or tearDown methods.
The base test class is a great place to track whether these are called
and raise an assertion after they are run, if the base implementations
were not run.
affects testtools
Related branches
lp://staging/~lifeless/testtools/344023
- Jonathan Lange: Approve
-
Diff: 134 lines3 files modifiedtesttools/testcase.py (+14/-0)
testtools/tests/test_testresult.py (+2/-0)
testtools/tests/test_testtools.py (+28/-0)
Changed in testtools: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in testtools: | |
milestone: | none → 0.0.2 |
status: | Confirmed → Fix Released |
Changed in testtools: | |
milestone: | 0.9 → 0.9.0 |
To post a comment you must log in.