assert_raises

assert_raises(exception_type, message, func, args, *kwargs)

Check that an exception is raised with a specific message

Parameters