diff options
| author | Kevin Christopher Henry <k@severian.com> | 2013-09-09 04:59:47 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-09 16:03:13 -0400 |
| commit | 9d700322b38ea670800a97f2b92dd2fc2c6ff28d (patch) | |
| tree | 03972a5cf4a8b5eeb69909ddacbe33eeae1d2efd /docs/intro/tutorial05.txt | |
| parent | a52cc1c0888c2cedb07b2c0619c1a92a2f6e2c40 (diff) | |
Fixed #19885 -- cleaned up the django.test namespace
* override_settings may now be imported from django.test
* removed Approximate from django.test
* updated documentation for things importable from django.test
Thanks akaariai for the suggestion.
Diffstat (limited to 'docs/intro/tutorial05.txt')
| -rw-r--r-- | docs/intro/tutorial05.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index 1f0b40ed1d..14a1795a1c 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -319,7 +319,7 @@ Before we try to fix anything, let's have a look at the tools at our disposal. The Django test client ---------------------- -Django provides a test :class:`~django.test.client.Client` to simulate a user +Django provides a test :class:`~django.test.Client` to simulate a user interacting with the code at the view level. We can use it in ``tests.py`` or even in the shell. @@ -341,7 +341,7 @@ Next we need to import the test client class (later in ``tests.py`` we will use the :class:`django.test.TestCase` class, which comes with its own client, so this won't be required):: - >>> from django.test.client import Client + >>> from django.test import Client >>> # create an instance of the client for our use >>> client = Client() |
