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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user