Improve exception tests by making use of Context Managers to resolve #477

This commit is contained in:
cmccandless
2017-10-21 03:17:15 -05:00
committed by Ilya Khadykin
parent 5933ce81d3
commit f8f495ca4a
11 changed files with 62 additions and 36 deletions

View File

@@ -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