Exemplo n.º 1
0
 def test_linkify_works_without_protocol(self):
     expected = '<a href="http://www.example.com" target="_blank">www.example.com</a>'
     actual = utils.linkify('www.example.com')
     assert actual == expected
Exemplo n.º 2
0
 def test_linkify_linkifies_url_with_uppercase_letters(self):
     expected = '<a href="Http://Www.Example.Com" target="_blank">Http://Www.Example.Com</a>'
     actual = utils.linkify('Http://Www.Example.Com')
     assert actual == expected
Exemplo n.º 3
0
 def test_linkify_linkifies_url_without_www(self):
     expected = '<a href="http://example.com" target="_blank">http://example.com</a>'
     actual = utils.linkify('http://example.com')
     assert actual == expected
Exemplo n.º 4
0
 def test_linkify_works_without_protocol(self):
     expected = '<a href="http://www.example.com" target="_blank">www.example.com</a>'
     actual = utils.linkify('www.example.com')
     assert actual == expected
Exemplo n.º 5
0
 def test_linkify_linkifies_url_with_uppercase_letters(self):
     expected = '<a href="Http://Www.Example.Com" target="_blank">Http://Www.Example.Com</a>'
     actual = utils.linkify('Http://Www.Example.Com')
     assert actual == expected
Exemplo n.º 6
0
 def test_linkify_linkifies_url_without_www(self):
     expected = '<a href="http://example.com" target="_blank">http://example.com</a>'
     actual = utils.linkify('http://example.com')
     assert actual == expected