Kaydet (Commit) 32b67b3f authored tarafından Tim Graham's avatar Tim Graham

Added an import to docs/topics/testing/advanced.txt example.

üst bad6280c
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment