From 5ad08583e166b63fff12fc87fa84528e946ac6ad Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 31 Aug 2007 11:37:28 +0000 Subject: 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 --- docs/testing.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') 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 -- cgit v1.3