summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-17 13:53:20 -0500
committerTim Graham <timograham@gmail.com>2015-02-17 13:53:20 -0500
commit32b67b3fd1d252566f60cf38fe1459bb83de2ce2 (patch)
treee0e07f48eb7b412593ab2c570be3d4cd603cdddf
parentbad6280c4e3f75f3ccd27f8fd85a4043bb296128 (diff)
Added an import to docs/topics/testing/advanced.txt example.
-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 3ca8ed88cf..93583893a9 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.