Clarified assertRaisesMessage() behavior with respect to the message.

This commit is contained in:
Tim Graham 2015-07-30 18:28:26 -04:00
parent 1c7c782d6e
commit 6bb4f07372
1 changed files with 1 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ your test suite.
SimpleTestCase.assertRaisesMessage(expected_exception, expected_message)
Asserts that execution of ``callable`` raises ``expected_exception`` and
that the exception has an ``expected_message`` representation. Any other
that ``expected_message`` is found in the exception's message. Any other
outcome is reported as a failure. Similar to unittest's
:meth:`~unittest.TestCase.assertRaisesRegex` with the difference that
``expected_message`` isn't a regular expression.