From 659a73bc0a2df9be856e23fcfc6cc66d0d1a35fd Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sat, 4 Jul 2020 09:41:40 -0400 Subject: [PATCH] Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works. --- docs/topics/testing/tools.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index eac4fa3ef7..a22428962a 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1651,10 +1651,11 @@ your test suite. Asserts that a queryset ``qs`` returns a particular list of values ``values``. - The comparison of the contents of ``qs`` and ``values`` is performed using - the function ``transform``; by default, this means that the ``repr()`` of - each value is compared. Any other callable can be used if ``repr()`` doesn't - provide a unique or helpful comparison. + The comparison of the contents of ``qs`` and ``values`` is performed by + applying ``transform`` to ``qs``. By default, this means that the + ``repr()`` of each value in ``qs`` is compared to the ``values``. Any other + callable can be used if ``repr()`` doesn't provide a unique or helpful + comparison. By default, the comparison is also ordering dependent. If ``qs`` doesn't provide an implicit ordering, you can set the ``ordered`` parameter to