From 079702aa37d23a3bb80cb52ae8bf66bed11a7481 Mon Sep 17 00:00:00 2001 From: Victor Shih Date: Thu, 27 Aug 2020 00:00:10 -0700 Subject: [PATCH] WIP test for urlize_quoted_links() with escaped parameters. https://github.com/encode/django-rest-framework/issues/7498 --- tests/test_templatetags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index 28d6b4011..5df5c240f 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -300,6 +300,8 @@ class URLizerTests(TestCase): '"url": "http://api/users/1/", ' data['"foo_set": [\n "http://api/foos/1/"\n], '] = \ '"foo_set": [\n "http://api/foos/1/"\n], ' + data['"url_escaped_params": "http://api/urls/http%3A%2F%2Fabc/", '] = \ + '"url_escaped_params": "http://api/urls/http%253A%252F%252Fabc/", ' self._urlize_dict_check(data) def test_template_render_with_autoescape(self):