I know about unittest Python module.
unittest
I know about assertRaises() method of TestCase class.
assertRaises()
TestCase
I would like to write a test th
I use this pattern for the kind of assertion you've asked:
with self.assertRaises(Exception): try: doStuff() except: pass else: raise Exception
It will fail exactly when exception is raised by doStuff().