summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/overview.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 133931559e..c221702005 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -663,6 +663,13 @@ Use the ``django.test.Client`` class to make requests.
:meth:`~django.contrib.auth.models.UserManager.create_user` helper
method to create a new user with a correctly hashed password.
+ .. versionadded:: 1.7
+
+ Requests made with :meth:`~django.test.Client.login` go through the
+ request middleware. If you need to control the environment, you can
+ do so at :class:`~django.test.Client` instantiation or with the
+ `Client.defaults` attribute.
+
.. method:: Client.logout()
If your site uses Django's :doc:`authentication system</topics/auth/index>`,
@@ -673,6 +680,13 @@ Use the ``django.test.Client`` class to make requests.
and session data cleared to defaults. Subsequent requests will appear
to come from an :class:`~django.contrib.auth.models.AnonymousUser`.
+ .. versionadded:: 1.7
+
+ Requests made with :meth:`~django.test.Client.logout` go through the
+ request middleware. If you need to control the environment, you can
+ do so at :class:`~django.test.Client` instantiation or with the
+ `Client.defaults` attribute.
+
Testing responses
~~~~~~~~~~~~~~~~~