mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
WIP test for urlize_quoted_links() with escaped parameters.
https://github.com/encode/django-rest-framework/issues/7498
This commit is contained in:
parent
7f3a3557a0
commit
079702aa37
|
@ -300,6 +300,8 @@ class URLizerTests(TestCase):
|
|||
'"url": "<a href="http://api/users/1/">http://api/users/1/</a>", '
|
||||
data['"foo_set": [\n "http://api/foos/1/"\n], '] = \
|
||||
'"foo_set": [\n "<a href="http://api/foos/1/">http://api/foos/1/</a>"\n], '
|
||||
data['"url_escaped_params": "http://api/urls/http%3A%2F%2Fabc/", '] = \
|
||||
'"url_escaped_params": "<a href="http://api/urls/http%3A%2F%2Fabc/">http://api/urls/http%253A%252F%252Fabc/</a>", '
|
||||
self._urlize_dict_check(data)
|
||||
|
||||
def test_template_render_with_autoescape(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user