Commit 0dab235
Benjamin Moody
test_annotation: convert to a standard unittest.TestCase.
Make the test_annotation class a subclass of unittest.TestCase,
allowing it to use standard unit testing utility methods, as well as
setup and teardown functions. (nosetests will run "test" class
methods automatically even if they are not subclasses of TestCase, but
unittest won't.) Rename the class to TestAnnotation for consistency.
Make the module executable (invoke unittest.main()) so it can be
invoked simply using 'python3 -m tests.test_annotation'.
Ensure that temporary files created by the annotation tests will be
correctly cleaned up by TestAnnotation.tearDownClass() rather than by
the unrelated TestRecord.tearDownClass(). (Presumably this only
happened to work previously because "test_record" comes alphabetically
after "test_annotation".)1 parent 481978e commit 0dab235
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
0 commit comments