mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #27753 -- Deprecated django.utils.http urllib aliases.
This commit is contained in:
parent
fdc4518fe2
commit
83c2bc52c2
4 changed files with 33 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
import unittest
|
||||
from datetime import datetime
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.test import SimpleTestCase, ignore_warnings
|
||||
from django.utils.datastructures import MultiValueDict
|
||||
from django.utils.deprecation import RemovedInDjango40Warning
|
||||
from django.utils.http import (
|
||||
base36_to_int, escape_leading_slashes, http_date, int_to_base36,
|
||||
is_safe_url, is_same_domain, parse_etags, parse_http_date, quote_etag,
|
||||
|
@ -216,6 +217,7 @@ class URLSafeBase64Tests(unittest.TestCase):
|
|||
self.assertEqual(bytestring, decoded)
|
||||
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango40Warning)
|
||||
class URLQuoteTests(unittest.TestCase):
|
||||
def test_quote(self):
|
||||
self.assertEqual(urlquote('Paris & Orl\xe9ans'), 'Paris%20%26%20Orl%C3%A9ans')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue