diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-31 13:58:03 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-31 13:58:03 +0000 |
| commit | 37c8bc89f20104c0ac02dbc9b2aa7f3a09aa771a (patch) | |
| tree | d21f92c75e5df0fcd8f8c9922e97138d5849e338 | |
| parent | 9ed6e08ff99c18710c0e4875f827235f04c89d76 (diff) | |
Removed deprecated tests missed in r17839.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/test_client_regress/models.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/regressiontests/test_client_regress/models.py b/tests/regressiontests/test_client_regress/models.py index 0f98b2c53f..f75e6458d1 100644 --- a/tests/regressiontests/test_client_regress/models.py +++ b/tests/regressiontests/test_client_regress/models.py @@ -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,27 +938,6 @@ class RequestHeadersTest(TestCase): 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): """ |
