do not use with self.assertRaises(...): in tests