summaryrefslogtreecommitdiff
path: root/tests/deprecation
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-11-18 11:57:05 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 08:05:18 -0500
commit75f107b8842dfc890ddd65262bd09ca87c3a15be (patch)
treea1e30fc3d82e3a1f281caccd078108daea93c7b5 /tests/deprecation
parent61ad1ea92b1f4df992b0ef1dcc7c781da2413815 (diff)
downloaddjango-75f107b8842dfc890ddd65262bd09ca87c3a15be.tar.gz
Removed request.REQUEST per deprecation timeline; refs #18659.
Diffstat (limited to 'tests/deprecation')
-rw-r--r--tests/deprecation/tests.py22
1 files changed, 1 insertions, 21 deletions
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):