From c62d6eea19a1e3737ceb2af7f2f75fe727c51906 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 3 Jul 2007 12:35:24 +0000 Subject: [PATCH] unicode: Added a test to ensure that we title-case non-ASCII strings properly. Refs #4749. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5591 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/defaultfilters/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py index dc3693f0d6..caa58e1257 100644 --- a/tests/regressiontests/defaultfilters/tests.py +++ b/tests/regressiontests/defaultfilters/tests.py @@ -76,6 +76,8 @@ u'' >>> title('a nice title, isn\'t it?') u"A Nice Title, Isn't It?" +>>> title(u'discoth\xe8que') +u'Discoth\xe8que' >>> truncatewords(u'A sentence with a few words in it', 1) u'A ...'