

def test_sum_attributes_nested(self):
    tmpl = env.from_string("{{ values|sum('real.value') }}")
    assert (self.render(values=[{
        'real': {
            'value': 23,
        },
    }, {
        'real': {
            'value': 1,
        },
    }, {
        'real': {
            'value': 18,
        },
    }]) == '42')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_sum_attributes_nested/VarMisuse@21/37 `tmpl`->`self`