diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/template_tests/filter_tests/test_urlize.py | 5 | ||||
| -rw-r--r-- | tests/utils_tests/test_html.py | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/template_tests/filter_tests/test_urlize.py b/tests/template_tests/filter_tests/test_urlize.py index ca9f8fb7e1..692c3fc830 100644 --- a/tests/template_tests/filter_tests/test_urlize.py +++ b/tests/template_tests/filter_tests/test_urlize.py @@ -359,9 +359,8 @@ class FunctionTests(SimpleTestCase): "www.example.com</a>]", ) self.assertEqual( - urlize("see test[at[example.com"), - 'see <a href="https://test[at[example.com" rel="nofollow">' - "test[at[example.com</a>", + urlize("see test[at[example.com"), # Invalid hostname. + "see test[at[example.com", ) self.assertEqual( urlize("[http://168.192.0.1](http://168.192.0.1)"), diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index f1a29977a7..7167383aef 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -489,6 +489,7 @@ class TestUtilsHtml(SimpleTestCase): "foo@localhost.", "test@example?;+!.com", "email me@example.com,then I'll respond", + "[a link](https://www.djangoproject.com/)", # trim_punctuation catastrophic tests "(" * 100_000 + ":" + ")" * 100_000, "(" * 100_000 + "&:" + ")" * 100_000, |
