From 75f107b8842dfc890ddd65262bd09ca87c3a15be Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 18 Nov 2014 11:57:05 -0500 Subject: Removed request.REQUEST per deprecation timeline; refs #18659. --- tests/deprecation/tests.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'tests/deprecation') diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py index cae03a8424..2d9a9beb69 100644 --- a/tests/deprecation/tests.py +++ b/tests/deprecation/tests.py @@ -4,7 +4,7 @@ import os import unittest import warnings -from django.test import SimpleTestCase, RequestFactory, override_settings +from django.test import SimpleTestCase, override_settings from django.test.utils import reset_warning_registry from django.utils import six, translation from django.utils.deprecation import RenameMethodsBase @@ -175,26 +175,6 @@ class RenameMethodsTests(SimpleTestCase): ]) -class DeprecatingRequestMergeDictTest(SimpleTestCase): - def test_deprecated_request(self): - """ - Ensure the correct warning is raised when WSGIRequest.REQUEST is - accessed. - """ - reset_warning_registry() - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter('always') - request = RequestFactory().get('/') - request.REQUEST # evaluate - - msgs = [str(warning.message) for warning in recorded] - self.assertEqual(msgs, [ - '`request.REQUEST` is deprecated, use `request.GET` or ' - '`request.POST` instead.', - '`MergeDict` is deprecated, use `dict.update()` instead.', - ]) - - @override_settings(USE_I18N=True) class DeprecatedChineseLanguageCodes(SimpleTestCase): def test_deprecation_warning(self): -- cgit v1.2.1