

def test_sum(self):
    tmpl = env.from_string('{{ [1, 2, 3, 4, 5, 6]|sum }}')
    assert (tmpl.render() == '21')

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