Improve exception tests by making use of Context Managers to resolve #477
This commit is contained in:
committed by
Ilya Khadykin
parent
5933ce81d3
commit
f8f495ca4a
@@ -22,6 +22,7 @@ A list of missing exercise can be found here: http://exercism.io/languages/pytho
|
||||
- We use minimalistic stub files for all exercises (#272).
|
||||
- We use `unittest` (Python Standard Library) and no 3rd-party-framework.
|
||||
- We use the parameter order `self.assertEqual(actual, expected)` (#440).
|
||||
- We use context managers (`with self.assertRaises(\<exception type\>):`) for testing for exceptions (#477).
|
||||
|
||||
|
||||
### Testing
|
||||
|
||||
Reference in New Issue
Block a user