Commit 54e79af
committed
unittest: Add setUp/tearDown methods to TestCase.
By ensuring that the `setUp`/`tearDown` methods exist in `TestCase`,
we simplify the logic needed when subclassing tests. Previously people
would need to know if their super class had a `setUp` method before
attempting to call it from their overwritten version.
Signed-off-by: Greg Darke <micropython@me.tsukasa.au>1 parent 38675aa commit 54e79af
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
74 | 88 | | |
75 | 89 | | |
76 | 90 | | |
| |||
0 commit comments