_x8l6q
Last Updated: February 25, 2016
·
543
· jeffc

with and assertRaises

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

with self.assertRaises(StoleniPadException):
    clown.useiPad()