1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #18071 -- Ignored case sensitivity in urlize utility. Thanks luke@creaturecreative.com and adamzap for the report and the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Claude Paroz
2012-04-11 17:49:22 +00:00
parent f0697570e9
commit e2548ec2a9
2 changed files with 6 additions and 2 deletions

View File

@@ -292,6 +292,10 @@ class DefaultFiltersTests(TestCase):
self.assertEqual(urlize('email@.stream.ru'),
u'email@.stream.ru')
# Check urlize accepts uppercased URL schemes - see #18071
self.assertEqual(urlize('HTTPS://github.com/'),
u'<a href="https://github.com/" rel="nofollow">HTTPS://github.com/</a>')
def test_wordcount(self):
self.assertEqual(wordcount(''), 0)
self.assertEqual(wordcount(u'oneword'), 1)