mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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
This commit is contained in:
parent
d09d1428f8
commit
5ad08583e1
5 changed files with 41 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue