diff -r 5ff1fc726848 -r c6bca38c1cbf parts/django/tests/regressiontests/templates/custom.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parts/django/tests/regressiontests/templates/custom.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,12 @@ +from unittest import TestCase + +from django import template + + +class CustomTests(TestCase): + def test_filter(self): + t = template.Template("{% load custom %}{{ string|trim:5 }}") + self.assertEqual( + t.render(template.Context({"string": "abcdefghijklmnopqrstuvwxyz"})), + u"abcde" + )