summaryrefslogtreecommitdiff
path: root/tests/handlers
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/handlers
parente2b77aceddbda9071fcfc38f90fb50d091d0b5fc (diff)
downloaddjango-be67400b477c1b0e7e81766f41bbceed0de74bdc.tar.gz
Refs #24652 -- Used SimpleTestCase where appropriate.
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
index e7c03dd971..6097754b59 100644
--- a/tests/handlers/tests.py
+++ b/tests/handlers/tests.py
@@ -6,13 +6,13 @@ from django.core.handlers.wsgi import WSGIHandler, WSGIRequest, get_script_name
from django.core.signals import request_finished, request_started
from django.db import close_old_connections, connection
from django.test import (
- RequestFactory, TestCase, TransactionTestCase, override_settings,
+ RequestFactory, SimpleTestCase, TransactionTestCase, override_settings,
)
from django.utils import six
from django.utils.encoding import force_str
-class HandlerTests(TestCase):
+class HandlerTests(SimpleTestCase):
def setUp(self):
request_started.disconnect(close_old_connections)
@@ -137,7 +137,7 @@ class TransactionsPerRequestTests(TransactionTestCase):
@override_settings(ROOT_URLCONF='handlers.urls')
-class SignalsTests(TestCase):
+class SignalsTests(SimpleTestCase):
def setUp(self):
self.signals = []
@@ -170,7 +170,7 @@ class SignalsTests(TestCase):
@override_settings(ROOT_URLCONF='handlers.urls')
-class HandlerSuspiciousOpsTest(TestCase):
+class HandlerSuspiciousOpsTest(SimpleTestCase):
def test_suspiciousop_in_view_returns_400(self):
response = self.client.get('/suspicious/')
@@ -178,7 +178,7 @@ class HandlerSuspiciousOpsTest(TestCase):
@override_settings(ROOT_URLCONF='handlers.urls')
-class HandlerNotFoundTest(TestCase):
+class HandlerNotFoundTest(SimpleTestCase):
def test_invalid_urls(self):
response = self.client.get('~%A9helloworld')
@@ -202,7 +202,7 @@ class HandlerNotFoundTest(TestCase):
self.assertIsInstance(environ['PATH_INFO'], six.text_type)
-class ScriptNameTests(TestCase):
+class ScriptNameTests(SimpleTestCase):
def test_get_script_name(self):
# Regression test for #23173
# Test first without PATH_INFO