Correcting a typo and a copy/paste problem in the RequestFactory docs from [14192].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b37327caae
commit
3321171952
|
@ -1050,11 +1050,11 @@ The following is a simple unit test using the request factory::
|
||||||
|
|
||||||
class SimpleTest(unittest.TestCase):
|
class SimpleTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
# Every test needs a client.
|
# Every test needs access to the request factory.
|
||||||
self.factory = RequestFactory()
|
self.factory = RequestFactory()
|
||||||
|
|
||||||
def test_details(self):
|
def test_details(self):
|
||||||
# Create a in instance of a GET request.
|
# Create an instance of a GET request.
|
||||||
request = self.factory.get('/customer/details')
|
request = self.factory.get('/customer/details')
|
||||||
|
|
||||||
# Test my_view() as if it were deployed at /customer/details
|
# Test my_view() as if it were deployed at /customer/details
|
||||||
|
|
Loading…
Reference in New Issue