

def test_wordcount(self):
    tmpl = env.from_string('{{ "foo bar baz"|wordcount }}')
    assert (self.render() == '3')

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