diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-19 03:25:15 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-19 03:25:15 +0000 |
| commit | 2ec4ef212c070744bf87dde8aef1d894f079aaf2 (patch) | |
| tree | 68692917bd34a7231599fc22889848c2108bb14a /docs/testing.txt | |
| parent | 84c5094769a37e5e005dc45c29f6256f19c18523 (diff) | |
newforms-admin: Merged to [4349]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/testing.txt')
| -rw-r--r-- | docs/testing.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/testing.txt b/docs/testing.txt index 61b34e8c83..7618aaea66 100644 --- a/docs/testing.txt +++ b/docs/testing.txt @@ -244,11 +244,11 @@ can be invoked on the ``Client`` instance. ``login(path, username, password)`` In a production site, it is likely that some views will be protected with - the @login_required URL provided by ``django.contrib.auth``. Interacting + the @login_required decorator provided by ``django.contrib.auth``. Interacting with a URL that has been login protected is a slightly complex operation, - so the Test Client provides a simple URL to automate the login process. A + so the Test Client provides a simple method to automate the login process. A call to ``login()`` stimulates the series of GET and POST calls required - to log a user into a @login_required protected URL. + to log a user into a @login_required protected view. If login is possible, the final return value of ``login()`` is the response that is generated by issuing a GET request on the protected URL. If login |
