summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-25 07:56:07 -0400
committerTim Graham <timograham@gmail.com>2016-04-25 07:56:07 -0400
commitbb0b4b705b508451567bcada9106b91b8fca9e86 (patch)
treee7239192a52349d084f621d7bf6ffe656447de80 /tests
parentbd145e7209a0e628cced10384bd6f62d65c0f211 (diff)
Fixed #26052 -- Moved conditional_content_removal() processing to the test client.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_client/test_conditional_content_removal.py (renamed from tests/http_utils/tests.py)8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/http_utils/tests.py b/tests/test_client/test_conditional_content_removal.py
index 53e06c8938..cc5bdb69ed 100644
--- a/tests/http_utils/tests.py
+++ b/tests/test_client/test_conditional_content_removal.py
@@ -4,8 +4,8 @@ import gzip
import io
from django.http import HttpRequest, HttpResponse, StreamingHttpResponse
-from django.http.utils import conditional_content_removal
from django.test import SimpleTestCase
+from django.test.client import conditional_content_removal
# based on Python 3.3's gzip.compress
@@ -19,12 +19,12 @@ def gzip_compress(data):
return buf.getvalue()
-class HttpUtilTests(SimpleTestCase):
+class ConditionalContentTests(SimpleTestCase):
def test_conditional_content_removal(self):
"""
- Tests that content is removed from regular and streaming responses with
- a status_code of 100-199, 204, 304 or a method of "HEAD".
+ Content is removed from regular and streaming responses with a
+ status_code of 100-199, 204, 304, or a method of "HEAD".
"""
req = HttpRequest()