Ticket #17248: 17248.diff

File 17248.diff, 929 bytes (added by ptone, 3 years ago)
  • docs/topics/testing.txt

    diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
    index dc5bf7e..3a95998 100644
    a b Assertions 
    14981498.. versionchanged:: 1.2
    14991499    Addded ``msg_prefix`` argument.
    15001500
     1501.. versionchanged:: 1.4
     1502    Added ``assertRaisesMessage``.
     1503
    15011504As Python's normal :class:`unittest.TestCase` class implements assertion methods
    15021505such as :meth:`~unittest.TestCase.assertTrue` and
    15031506:meth:`~unittest.TestCase.assertEqual`, Django's custom :class:`TestCase` class
    your test suite. 
    15121515
    15131516.. method:: TestCase.assertRaisesMessage(expected_exception, expected_message, callable_obj=None, *args, **kwargs)
    15141517
     1518    .. versionadded:: 1.4
     1519
    15151520    Asserts that execution of callable ``callable_obj`` raised the
    15161521    ``expected_exception`` exception and that such exception has an
    15171522    ``expected_message`` representation. Any other outcome is reported as a
Back to Top