In order to make sure that the error messages from my module are informative, I would like to see all the error messages caught by assertRaises(). Today I do it for each ass
If you want the error message exactly match something:
with self.assertRaises(ValueError) as error: do_something() self.assertEqual(error.exception.message, 'error message')