Unittest in Django. How to get the exception message from assertRaises()?
- by ziang
I used the assertRaises() to validation there will be an exception thrown and there is no problem of this.
My question is, is there any way to get the exception message from assertRaises()? I would like to assert for different types of exceptiosn as well by parsing the exception message..