Code

Ticket #17248: 17248.diff

File 17248.diff, 929 bytes (added by ptone, 3 years ago)
Line 
1diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
2index dc5bf7e..3a95998 100644
3--- a/docs/topics/testing.txt
4+++ b/docs/topics/testing.txt
5@@ -1498,6 +1498,9 @@ Assertions
6 .. versionchanged:: 1.2
7     Addded ``msg_prefix`` argument.
8 
9+.. versionchanged:: 1.4
10+    Added ``assertRaisesMessage``.
11+
12 As Python's normal :class:`unittest.TestCase` class implements assertion methods
13 such as :meth:`~unittest.TestCase.assertTrue` and
14 :meth:`~unittest.TestCase.assertEqual`, Django's custom :class:`TestCase` class
15@@ -1512,6 +1515,8 @@ your test suite.
16 
17 .. method:: TestCase.assertRaisesMessage(expected_exception, expected_message, callable_obj=None, *args, **kwargs)
18 
19+    .. versionadded:: 1.4
20+
21     Asserts that execution of callable ``callable_obj`` raised the
22     ``expected_exception`` exception and that such exception has an
23     ``expected_message`` representation. Any other outcome is reported as a