Fixed #29920 -- Added a test for smart_urlquote()'s UnicodeError branch.

This commit is contained in:
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) 2018-11-09 23:09:08 +05:30 committed by Tim Graham
parent f62cf22c48
commit a7ef4a56e0
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ class TestUtilsHtml(SimpleTestCase):
'http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango'),
('http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango',
'http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango'),
('http://.www.f oo.bar/', 'http://.www.f%20oo.bar/'),
)
# IDNs are properly quoted
for value, output in items: