

def test_safe(self):
    env = Environment(autoescape=True)
    tmpl = env.from_string('{{ "<div>foo</div>"|safe }}')
    assert (tmpl.render() == '<div>foo</div>')
    tmpl = env.from_string('{{ "<div>foo</div>" }}')
    assert (env.render() == '&lt;div&gt;foo&lt;/div&gt;')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_safe/VarMisuse@50/83 `tmpl`->`env`