summaryrefslogtreecommitdiff
path: root/tests/test_client
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2018-11-26 14:01:27 -0500
committerTim Graham <timograham@gmail.com>2018-11-27 09:49:02 -0500
commit0f212db29d361ec6219b170198b7c94d0bb3f719 (patch)
treeb4a1a93f3d5b725ed9d08896892f1a3f5e191ab7 /tests/test_client
parent7f63b894c02effb09c15ab0b40d28b89553b8e37 (diff)
Made reused RequestFactory instances class attributes.
Diffstat (limited to 'tests/test_client')
-rw-r--r--tests/test_client/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 22e28be198..bb6c8bbff0 100644
--- a/tests/test_client/tests.py
+++ b/tests/test_client/tests.py
@@ -861,9 +861,7 @@ class RequestFactoryTest(SimpleTestCase):
('options', _generic_view),
('trace', trace_view),
)
-
- def setUp(self):
- self.request_factory = RequestFactory()
+ request_factory = RequestFactory()
def test_request_factory(self):
"""The request factory implements all the HTTP/1.1 methods."""