

def test_first(self):
    tmpl = env.from_string('{{ foo|first }}')
    out = tmpl.render(foo=range(10))
    assert (out == '0')

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