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:53:57 -0500 |
| commit | e4df10668ce68ae71f33649f5d87e814f73d7bd4 (patch) | |
| tree | 995367a797c3e8b5263a1605afa40c47143597b4 /docs | |
| parent | a1fa0135ecb28911f31af4df994be26db59355e4 (diff) | |
[1.8.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 c995d5ec5c..b95f157f0c 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. |
