Ticket #18071: 18071-regression-test.diff

File 18071-regression-test.diff, 704 bytes (added by Adam Zapletal, 7 years ago)

Test for uppercase URL schemes with urlize

  • tests/regressiontests/defaultfilters/tests.py

     
    292292        self.assertEqual(urlize('email@.stream.ru'),
    293293            u'email@.stream.ru')
    294294
     295        # Check urlize accepts uppercased URL schemes - see #18071
     296        self.assertEqual(urlize('HTTPS://github.com/'),
     297            u'<a href="https://github.com/" rel="nofollow">HTTPS://github.com/</a>')
     298
    295299    def test_wordcount(self):
    296300        self.assertEqual(wordcount(''), 0)
    297301        self.assertEqual(wordcount(u'oneword'), 1)
Back to Top