I want to understand the difference between assertRaises(Exception) and assertRaisesRegexp(Exception)?
Hello Deva-skeem,
AssertRaises will check that an exception is raised during the execution of a certain block of code. AssertRaisesRegexp will do the same thing, but it will also check that the exception raised matches a certain regular expression.