

def test_sort4(self):

    class Magic(object):

        def __init__(self, value):
            self.value = value

        def __unicode__(self):
            return unicode(self.value)
    tmpl = env.from_string("{{ items|sort(attribute='value')|join }}")
    assert (self.render(items=map(Magic, [3, 2, 4, 1])) == '1234')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_sort4/VarMisuse@67/90 `tmpl`->`self`