summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
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/httpwrappers
parente2b77aceddbda9071fcfc38f90fb50d091d0b5fc (diff)
downloaddjango-be67400b477c1b0e7e81766f41bbceed0de74bdc.tar.gz
Refs #24652 -- Used SimpleTestCase where appropriate.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r--tests/httpwrappers/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index a51609097f..3f641da89b 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -17,7 +17,7 @@ from django.http import (
HttpResponseRedirect, JsonResponse, QueryDict, SimpleCookie,
StreamingHttpResponse, parse_cookie,
)
-from django.test import TestCase
+from django.test import SimpleTestCase
from django.utils import six
from django.utils._os import upath
from django.utils.encoding import force_text, smart_str
@@ -425,7 +425,7 @@ class HttpResponseTests(unittest.TestCase):
HttpResponsePermanentRedirect, url)
-class HttpResponseSubclassesTests(TestCase):
+class HttpResponseSubclassesTests(SimpleTestCase):
def test_redirect(self):
response = HttpResponseRedirect('/redirected/')
self.assertEqual(response.status_code, 302)
@@ -460,7 +460,7 @@ class HttpResponseSubclassesTests(TestCase):
self.assertContains(response, 'Only the GET method is allowed', status_code=405)
-class JsonResponseTests(TestCase):
+class JsonResponseTests(SimpleTestCase):
def test_json_response_non_ascii(self):
data = {'key': 'łóżko'}
response = JsonResponse(data)
@@ -489,7 +489,7 @@ class JsonResponseTests(TestCase):
self.assertEqual(json.loads(response.content.decode()), {'foo': 'bar'})
-class StreamingHttpResponseTests(TestCase):
+class StreamingHttpResponseTests(SimpleTestCase):
def test_streaming_response(self):
r = StreamingHttpResponse(iter(['hello', 'world']))
@@ -554,7 +554,7 @@ class StreamingHttpResponseTests(TestCase):
self.assertEqual(r.getvalue(), b'helloworld')
-class FileCloseTests(TestCase):
+class FileCloseTests(SimpleTestCase):
def setUp(self):
# Disable the request_finished signal during this test