Skip to content

Commit

Permalink
Correcting a typo and a copy/paste problem in the RequestFactory docs…
Browse files Browse the repository at this point in the history
… from [14192].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
Gabriel Hurley committed Oct 13, 2010
1 parent b37327c commit 3321171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1050,11 +1050,11 @@ The following is a simple unit test using the request factory::

class SimpleTest(unittest.TestCase):
def setUp(self):
# Every test needs a client.
# Every test needs access to the request factory.
self.factory = RequestFactory()

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')

# Test my_view() as if it were deployed at /customer/details
Expand Down

0 comments on commit 3321171

Please sign in to comment.