

def test_join(self):
    tmpl = env.from_string('{{ [1, 2, 3]|join("|") }}')
    out = tmpl.render()
    assert (out == '1|2|3')
    env2 = Environment(autoescape=True)
    tmpl = tmpl.from_string('{{ ["<foo>", "<span>foo</span>"|safe]|join }}')
    assert (tmpl.render() == '&lt;foo&gt;<span>foo</span>')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_join/VarMisuse@45/72 `env2`->`tmpl`