diff options
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/filter_tests/test_urlize.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template_tests/filter_tests/test_urlize.py b/tests/template_tests/filter_tests/test_urlize.py index 692c3fc830..c8c403ba95 100644 --- a/tests/template_tests/filter_tests/test_urlize.py +++ b/tests/template_tests/filter_tests/test_urlize.py @@ -218,6 +218,13 @@ class FunctionTests(SimpleTestCase): 'rel="nofollow">https://en.wikipedia.org/wiki/Django_(web_framework)</a>)', ) + def test_parenthesis_and_bracket(self): + self.assertEqual( + urlize("[(https://en.wikipedia.org/)]"), + '[(<a href="https://en.wikipedia.org/" ' + 'rel="nofollow">https://en.wikipedia.org/</a>)]', + ) + def test_nofollow(self): """ #12183 - Check urlize adds nofollow properly - see #12183 |
