

def test_urlize(self):
    tmpl = env.from_string('{{ "foo http://www.example.com/ bar"|urlize }}')
    assert (tmpl.render() == 'foo <a href="http://www.example.com/">http://www.example.com/</a> bar')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_urlize/original