summaryrefslogtreecommitdiff
path: root/tests/regressiontests/defaultfilters/tests.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-04 09:28:29 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-04 09:28:29 +0000
commit5664a678b29ab04cad425c15b2792f4519f43928 (patch)
tree7e8ef34cb859f3deb73872abc20aa50499dde4df /tests/regressiontests/defaultfilters/tests.py
parent216fae2352871e04e8edd44045c63bf5379ab229 (diff)
unicode: Added unicode-aware slugify filter (in Python) and better non-ASCIIarchive/attic/unicode
handling for the Javascript slug creator in admin. Can never be perfect here, but this is more tolerant in many cases. Fixed #4365. Thanks, Bill de hÓra, Baptiste, orestis@orestis.gr, Ahmet and Jonas for contributions to this. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/defaultfilters/tests.py')
-rw-r--r--tests/regressiontests/defaultfilters/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py
index caa58e1257..a1efae66f6 100644
--- a/tests/regressiontests/defaultfilters/tests.py
+++ b/tests/regressiontests/defaultfilters/tests.py
@@ -67,6 +67,9 @@ u'\xeb'
>>> slugify(' Jack & Jill like numbers 1,2,3 and 4 and silly characters ?%.$!/')
u'jack-jill-like-numbers-123-and-4-and-silly-characters'
+>>> slugify(u"Un \xe9l\xe9phant \xe0 l'or\xe9e du bois")
+u'un-elephant-a-loree-du-bois'
+
>>> stringformat(1, u'03d')
u'001'