Fix Python 3.2 compatiblity by removing unicode literals.
This commit is contained in:
parent
6c06adad1d
commit
209de62d22
|
@ -326,17 +326,17 @@ class DefaultFiltersTests(TestCase):
|
|||
|
||||
# Check urlize correctly include quotation marks in links - #20364
|
||||
self.assertEqual(urlize('before "hi@example.com" afterwards'),
|
||||
u'before "<a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
|
||||
'before "<a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
|
||||
self.assertEqual(urlize('before hi@example.com" afterwards'),
|
||||
u'before <a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
|
||||
'before <a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
|
||||
self.assertEqual(urlize('before "hi@example.com afterwards'),
|
||||
u'before "<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
|
||||
'before "<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
|
||||
self.assertEqual(urlize('before \'hi@example.com\' afterwards'),
|
||||
u'before \'<a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
|
||||
'before \'<a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
|
||||
self.assertEqual(urlize('before hi@example.com\' afterwards'),
|
||||
u'before <a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
|
||||
'before <a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
|
||||
self.assertEqual(urlize('before \'hi@example.com afterwards'),
|
||||
u'before \'<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
|
||||
'before \'<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
|
||||
|
||||
# Check urlize copes with commas following URLs in quotes - see #20364
|
||||
self.assertEqual(urlize('Email us at "hi@example.com", or phone us at +xx.yy'),
|
||||
|
|
Loading…
Reference in New Issue