

def test_filter(self):
    t = template.Template('{% load custom %}{{ string|trim:5 }}')
    self.assertEqual(t.render(template.Context({
        'string': 'abcdefghijklmnopqrstuvwxyz',
    })), 'abcde')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/templates/custom.py CustomTests.test_filter/original