mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -37,7 +37,7 @@ Example
|
||||
|
||||
The following is a simple unit test using the request factory::
|
||||
|
||||
from django.utils import unittest
|
||||
import unittest
|
||||
from django.test.client import RequestFactory
|
||||
|
||||
class SimpleTest(unittest.TestCase):
|
||||
|
||||
@@ -800,7 +800,7 @@ Example
|
||||
|
||||
The following is a simple unit test using the test client::
|
||||
|
||||
from django.utils import unittest
|
||||
import unittest
|
||||
from django.test.client import Client
|
||||
|
||||
class SimpleTest(unittest.TestCase):
|
||||
@@ -1143,7 +1143,7 @@ worry about state (such as cookies) carrying over from one test to another.
|
||||
|
||||
This means, instead of instantiating a ``Client`` in each test::
|
||||
|
||||
from django.utils import unittest
|
||||
import unittest
|
||||
from django.test.client import Client
|
||||
|
||||
class SimpleTest(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user