diff options
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 4e2003acde..0eb6fee113 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -787,7 +787,7 @@ add some database-specific features: * Database :attr:`~TransactionTestCase.fixtures`. * Test :ref:`skipping based on database backend features <skipping-tests>`. * The remaining specialized :meth:`assert* - <TransactionTestCase.assertQuerysetEqual>` methods. + <TransactionTestCase.assertQuerySetEqual>` methods. Django's :class:`TestCase` class is a more commonly used subclass of ``TransactionTestCase`` that makes use of database transaction facilities @@ -1777,7 +1777,7 @@ your test suite. Output in case of error can be customized with the ``msg`` argument. -.. method:: TransactionTestCase.assertQuerysetEqual(qs, values, transform=None, ordered=True, msg=None) +.. method:: TransactionTestCase.assertQuerySetEqual(qs, values, transform=None, ordered=True, msg=None) Asserts that a queryset ``qs`` matches a particular iterable of values ``values``. @@ -1794,6 +1794,11 @@ your test suite. Output in case of error can be customized with the ``msg`` argument. + .. deprecated:: 4.2 + + The ``assertQuerysetEqual()`` assertion method is deprecated. Use + ``assertQuerySetEqual()`` instead. + .. method:: TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) Asserts that when ``func`` is called with ``*args`` and ``**kwargs`` that |
