Author: aaugustin
Date: 2012-03-31 06:58:03 -0700 (Sat, 31 Mar 2012)
New Revision: 17848
Modified:
django/trunk/tests/regressiontests/test_client_regress/models.py
Log:
Removed deprecated tests missed in r17839.
Modified: django/trunk/tests/regressiontests/test_client_regress/models.py
===================================================================
--- django/trunk/tests/regressiontests/test_client_regress/models.py
2012-03-31 13:55:03 UTC (rev 17847)
+++ django/trunk/tests/regressiontests/test_client_regress/models.py
2012-03-31 13:58:03 UTC (rev 17848)
@@ -3,7 +3,6 @@
Regression tests for the Test Client, especially the customized assertions.
"""
import os
-import warnings
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
@@ -939,28 +938,7 @@
self.assertRedirects(response, '/test_client_regress/check_headers/',
status_code=301, target_status_code=200)
-class ResponseTemplateDeprecationTests(TestCase):
- """
- Response.template still works backwards-compatibly, but with pending
deprecation warning. Refs #12226.
- """
- def setUp(self):
- self.save_warnings_state()
- warnings.filterwarnings('ignore', category=DeprecationWarning)
-
- def tearDown(self):
- self.restore_warnings_state()
-
- def test_response_template_data(self):
- response = self.client.get("/test_client_regress/request_data/",
data={'foo':'whiz'})
- self.assertEqual(response.template.__class__, Template)
- self.assertEqual(response.template.name, 'base.html')
-
- def test_response_no_template(self):
- response = self.client.get("/test_client_regress/request_methods/")
- self.assertEqual(response.template, None)
-
-
class ReadLimitedStreamTest(TestCase):
"""
Tests that ensure that HttpRequest.body, HttpRequest.read() and
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.