summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorChris Bailey <chris.p.bailey@gmail.com>2014-02-10 05:18:20 -0500
committerTim Graham <timograham@gmail.com>2014-02-10 05:21:23 -0500
commitc5395eef7693e1ae222cbfd81d031237c1802c7f (patch)
treef0599b55b6b1c379c0641f68d5c89f1a1e9573ba /docs/topics
parent21f034165c73d6c529e2c30a69a44970537a8296 (diff)
Allowed a message to be passed to assertQuerysetEqual to make it consistent with other assert methods.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/testing/tools.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 49d4c10bbb..e31021eaef 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1443,7 +1443,7 @@ your test suite.
Output in case of error can be customized with the ``msg`` argument.
-.. method:: TransactionTestCase.assertQuerysetEqual(qs, values, transform=repr, ordered=True)
+.. method:: TransactionTestCase.assertQuerysetEqual(qs, values, transform=repr, ordered=True, msg=None)
Asserts that a queryset ``qs`` returns a particular list of values ``values``.
@@ -1456,6 +1456,8 @@ your test suite.
provide an implicit ordering, you can set the ``ordered`` parameter to
``False``, which turns the comparison into a Python set comparison.
+ Output in case of error can be customized with the ``msg`` argument.
+
.. versionchanged:: 1.6
The method now checks for undefined order and raises ``ValueError``
@@ -1463,6 +1465,11 @@ your test suite.
the given ``qs`` isn't ordered and the comparison is against more
than one ordered values.
+ .. versionchanged:: 1.7
+
+ The method now accepts a ``msg`` parameter to allow customization of
+ error message
+
.. method:: TransactionTestCase.assertNumQueries(num, func, *args, **kwargs)
Asserts that when ``func`` is called with ``*args`` and ``**kwargs`` that