summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_response.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-09-05 12:06:34 -0400
committerTim Graham <timograham@gmail.com>2015-09-23 19:31:11 -0400
commit9af3c6b9cef974d7d99f1ac4e83f64f09f5d352c (patch)
tree216b5dd7aed839957492df3401cd496388eeae1f /tests/template_tests/test_response.py
parente6cfa08f2d478cb962528188dff5cf4daf5e5f9b (diff)
Made template response APIs enforce the use of dict and backend-specific template objects.
Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
Diffstat (limited to 'tests/template_tests/test_response.py')
-rw-r--r--tests/template_tests/test_response.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py
index debc01dfe2..027584d2d7 100644
--- a/tests/template_tests/test_response.py
+++ b/tests/template_tests/test_response.py
@@ -5,15 +5,12 @@ import time
from datetime import datetime
from django.conf import settings
-from django.template import Context, engines
+from django.template import engines
from django.template.response import (
ContentNotRenderedError, SimpleTemplateResponse, TemplateResponse,
)
-from django.test import (
- RequestFactory, SimpleTestCase, ignore_warnings, override_settings,
-)
+from django.test import RequestFactory, SimpleTestCase, override_settings
from django.test.utils import require_jinja2
-from django.utils.deprecation import RemovedInDjango110Warning
from .utils import TEMPLATE_DIR
@@ -118,14 +115,6 @@ class SimpleTemplateResponseTest(SimpleTestCase):
response.render()
self.assertEqual(response.content, b'bar')
- @ignore_warnings(category=RemovedInDjango110Warning)
- def test_context_instance(self):
- response = self._response('{{ foo }}{{ processors }}',
- Context({'foo': 'bar'}))
- self.assertEqual(response.context_data.__class__, Context)
- response.render()
- self.assertEqual(response.content, b'bar')
-
def test_kwargs(self):
response = self._response(content_type='application/json', status=504)
self.assertEqual(response['content-type'], 'application/json')