def test_linkify_email(self): text = 'Test [email protected] text' expect = ('Test <a href="mailto:[email protected]" ' 'rel="nofollow">[email protected]</a> text') eq_(linkify(text, parse_email=True), Markup(expect))
def test_linkify(self): text = 'Test http://www.mozilla.org text' expect = ('Test <a href="http://www.mozilla.org" rel="nofollow">' 'http://www.mozilla.org</a> text') eq_(linkify(text), Markup(expect))