Community mailing list archives
Re: unit testing odoo constraintby
Apertoso, Jos De Graeve
2015-06-04 16:27 GMT+02:00 Nicolas Schmitt <email@example.com>:
The best way I have found to use the assertRaises is using it like this: with self.assertRaises(ExceptionType): # code that should raise the error Tell me how it goes.
Thanks, that fixed it.