summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-08-31 11:37:28 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-08-31 11:37:28 +0000
commit5ad08583e166b63fff12fc87fa84528e946ac6ad (patch)
treec4a53942a6d6b55d85e8680c06860e134a96a699 /docs
parentd09d1428f885ce4686dfe6fc20b091f3b8e66de7 (diff)
Fixed #4968 -- Added assertRedirects handling for paths with GET data. Thanks for the patch, Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/testing.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/testing.txt b/docs/testing.txt
index e27479cc34..bb62273bea 100644
--- a/docs/testing.txt
+++ b/docs/testing.txt
@@ -826,10 +826,10 @@ useful for testing Web applications:
Asserts that the template with the given name was *not* used in rendering
the response.
-``assertRedirects(response, expected_path, status_code=302, target_status_code=200)``
+``assertRedirects(response, expected_url, status_code=302, target_status_code=200)``
Asserts that the response return a ``status_code`` redirect status,
- it redirected to ``expected_path`` and the subsequent page was received with
- ``target_status_code``.
+ it redirected to ``expected_url`` (including any GET data), and the subsequent
+ page was received with ``target_status_code``.
``assertTemplateUsed(response, template_name)``
Asserts that the template with the given name was used in rendering the