summaryrefslogtreecommitdiff
path: root/tests/csrf_tests/tests.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2015-04-17 17:38:20 -0400
committerSimon Charette <charette.s@gmail.com>2015-05-20 13:46:13 -0400
commitbe67400b477c1b0e7e81766f41bbceed0de74bdc (patch)
treefd8e6d087082754df9159a5549bfa80e2a8c57d9 /tests/csrf_tests/tests.py
parente2b77aceddbda9071fcfc38f90fb50d091d0b5fc (diff)
downloaddjango-be67400b477c1b0e7e81766f41bbceed0de74bdc.tar.gz
Refs #24652 -- Used SimpleTestCase where appropriate.
Diffstat (limited to 'tests/csrf_tests/tests.py')
-rw-r--r--tests/csrf_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/csrf_tests/tests.py b/tests/csrf_tests/tests.py
index 29ce2c170c..2d347ccdde 100644
--- a/tests/csrf_tests/tests.py
+++ b/tests/csrf_tests/tests.py
@@ -10,7 +10,7 @@ from django.middleware.csrf import (
)
from django.template import RequestContext, Template
from django.template.context_processors import csrf
-from django.test import TestCase, override_settings
+from django.test import SimpleTestCase, override_settings
from django.views.decorators.csrf import (
csrf_exempt, ensure_csrf_cookie, requires_csrf_token,
)
@@ -56,7 +56,7 @@ class TestingHttpRequest(HttpRequest):
return getattr(self, '_is_secure_override', False)
-class CsrfViewMiddlewareTest(TestCase):
+class CsrfViewMiddlewareTest(SimpleTestCase):
# The csrf token is potentially from an untrusted source, so could have
# characters that need dealing with.
_csrf_id_cookie = b"<1>\xc2\xa1"