From e4df10668ce68ae71f33649f5d87e814f73d7bd4 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 17 Feb 2015 13:53:20 -0500 Subject: [PATCH] [1.8.x] Added an import to docs/topics/testing/advanced.txt example. Backport of 32b67b3fd1d252566f60cf38fe1459bb83de2ce2 from master --- docs/topics/testing/advanced.txt | 2 ++ 1 file changed, 2 insertions(+) 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.