summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-27 20:35:20 -0500
committerTim Graham <timograham@gmail.com>2019-01-17 10:52:19 -0500
commit958a7b4ca69434d0145fd569cf007e21841bb36c (patch)
tree6652f46a4edf7a6f9592b216a2c47c9f66803697 /tests
parent6f23996a597a302e2a3cac265f70b48f4aa02b11 (diff)
Refs #28965 -- Removed utils.http.cookie_date() per deprecation timeline.
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests/test_http.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py
index aca825ef1f..d143b34e7b 100644
--- a/tests/utils_tests/test_http.py
+++ b/tests/utils_tests/test_http.py
@@ -1,13 +1,12 @@
import unittest
from datetime import datetime
-from django.test import SimpleTestCase, ignore_warnings
+from django.test import SimpleTestCase
from django.utils.datastructures import MultiValueDict
-from django.utils.deprecation import RemovedInDjango30Warning
from django.utils.http import (
- base36_to_int, cookie_date, escape_leading_slashes, http_date,
- int_to_base36, is_safe_url, is_same_domain, parse_etags, parse_http_date,
- quote_etag, urlencode, urlquote, urlquote_plus, urlsafe_base64_decode,
+ base36_to_int, escape_leading_slashes, http_date, int_to_base36,
+ is_safe_url, is_same_domain, parse_etags, parse_http_date, quote_etag,
+ urlencode, urlquote, urlquote_plus, urlsafe_base64_decode,
urlsafe_base64_encode, urlunquote, urlunquote_plus,
)
@@ -279,11 +278,6 @@ class HttpDateProcessingTests(unittest.TestCase):
t = 1167616461.0
self.assertEqual(http_date(t), 'Mon, 01 Jan 2007 01:54:21 GMT')
- @ignore_warnings(category=RemovedInDjango30Warning)
- def test_cookie_date(self):
- t = 1167616461.0
- self.assertEqual(cookie_date(t), 'Mon, 01-Jan-2007 01:54:21 GMT')
-
def test_parsing_rfc1123(self):
parsed = parse_http_date('Sun, 06 Nov 1994 08:49:37 GMT')
self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(1994, 11, 6, 8, 49, 37))