mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.9.x] Fixed #25948 -- Added guidelines for SimpleTestCase.assertRaisesMessage() usage.
Backport of 77f50c9cfc from master
			
			
This commit is contained in:
		| @@ -1391,9 +1391,9 @@ your test suite. | ||||
|  | ||||
|     Asserts that execution of ``callable`` raises ``expected_exception`` and | ||||
|     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. | ||||
|     outcome is reported as a failure. It's a simpler version of | ||||
|     :meth:`unittest.TestCase.assertRaisesRegex` with the difference that | ||||
|     ``expected_message`` isn't treated as a regular expression. | ||||
|  | ||||
|     If only the ``expected_exception`` and ``expected_message`` parameters are | ||||
|     given, returns a context manager so that the code being tested can be | ||||
|   | ||||
		Reference in New Issue
	
	Block a user