Refs #27753 -- Deprecated django.utils.http urllib aliases.

This commit is contained in:
Tim Graham 2019-02-04 18:53:11 -05:00 committed by GitHub
parent fdc4518fe2
commit 83c2bc52c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 2 deletions

View file

@ -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')