summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/advanced.txt2
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.