diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/template_tests/filter_tests/test_urlize.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/template_tests/filter_tests/test_urlize.py b/tests/template_tests/filter_tests/test_urlize.py index 9cf3f982a8..6822092943 100644 --- a/tests/template_tests/filter_tests/test_urlize.py +++ b/tests/template_tests/filter_tests/test_urlize.py @@ -246,6 +246,24 @@ class FunctionTests(SimpleTestCase): '(Go to <a href="http://www.example.com/foo" rel="nofollow">http://www.example.com/foo</a>.)', ) + def test_trailing_multiple_punctuation(self): + self.assertEqual( + urlize('A test http://testing.com/example..'), + 'A test <a href="http://testing.com/example" rel="nofollow">http://testing.com/example</a>..' + ) + self.assertEqual( + urlize('A test http://testing.com/example!!'), + 'A test <a href="http://testing.com/example" rel="nofollow">http://testing.com/example</a>!!' + ) + self.assertEqual( + urlize('A test http://testing.com/example!!!'), + 'A test <a href="http://testing.com/example" rel="nofollow">http://testing.com/example</a>!!!' + ) + self.assertEqual( + urlize('A test http://testing.com/example.,:;)"!'), + 'A test <a href="http://testing.com/example" rel="nofollow">http://testing.com/example</a>.,:;)"!' + ) + def test_brackets(self): """ #19070 - Check urlize handles brackets properly |
