

def test_escape(self):
    tmpl = env.from_string('{{ \'<">&\'|escape }}')
    out = tmpl.render()
    assert (out == '&lt;&#34;&gt;&amp;')

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