diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-17 13:53:20 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-17 13:54:01 -0500 |
| commit | d1dd71f1a78d15a1f80cb3df2d01de55b5e4379b (patch) | |
| tree | 8ab84069822d3ba01f5fe5854d594d1870dcb3c3 /docs | |
| parent | fcaf2e135dbe9a2c31d54045d665fd1dfcfa8d5e (diff) | |
[1.7.x] Added an import to docs/topics/testing/advanced.txt example.
Backport of 32b67b3fd1d252566f60cf38fe1459bb83de2ce2 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/advanced.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 16d5d2d2b9..534c49afa5 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -40,6 +40,8 @@ The following is a simple unit test using the request factory:: from django.contrib.auth.models import AnonymousUser, User from django.test import TestCase, RequestFactory + from .views import my_view + class SimpleTest(TestCase): def setUp(self): # Every test needs access to the request factory. |
