git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
13 lines
326 B
Python
13 lines
326 B
Python
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"
|
|
)
|