

def test_length(self):
    tmpl = env.from_string('{{ "hello world"|length }}')
    out = tmpl.render()
    assert (out == '11')

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