diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-08-23 07:15:14 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-08-23 07:15:14 +0000 |
| commit | e5c4ba6151b3220a918bd47cc3f5a4e5f9ac89d1 (patch) | |
| tree | 53fa92ef7f6c6e7f2047b829b384335ea42df184 | |
| parent | 1a2464c06966e4fb71efab3629960c74cd41ec76 (diff) | |
[1.2.X] Fixed #14147 -- Added documentation metadata for new assertQuerysetEqual test method. Thanks to djoume for the report.
Backport of r13624 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/topics/testing.txt | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index 8efa29e69a..a7e9c05184 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -1248,19 +1248,6 @@ cause of an failure in your test suite. ``target_status_code`` will be the url and status code for the final point of the redirect chain. -.. method:: TestCase.assertQuerysetEqual(response, qs, values, transform=repr) - - 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 is also ordering dependent. If ``qs`` doesn't provide an - implicit ordering, you will need to apply a ``order_by()`` clause to your - queryset to ensure that the test will pass reliably. - .. _topics-testing-email: E-mail services |
