_x8l6q
Last Updated: February 25, 2016
·
471
· jeffc
4f4dccd7801537085dd4faa9fe8d5bd2

with and assertRaises

Checking for expected exceptions in a unit test is made much easier with, with:

with self.assertRaises(StoleniPadException):
    clown.useiPad()
Say Thanks
Respond