aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-01-06 21:46:38 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-01-06 21:46:38 -0600
commit208842590c58349d45cf3176d6769717aa8cafb7 (patch)
treeacb96a508beb81e5ca67a75f8fa8e5917378ca4c
parente535b9b36fb3b336e3a2c69608d3935d5033ace2 (diff)
downloadmediagoblin-208842590c58349d45cf3176d6769717aa8cafb7.tar.lz
mediagoblin-208842590c58349d45cf3176d6769717aa8cafb7.tar.xz
mediagoblin-208842590c58349d45cf3176d6769717aa8cafb7.zip
Also make slug unit test work with the new optionally-translitcodec-free code
-rw-r--r--mediagoblin/tests/test_util.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mediagoblin/tests/test_util.py b/mediagoblin/tests/test_util.py
index 452090e1..e4c04b7a 100644
--- a/mediagoblin/tests/test_util.py
+++ b/mediagoblin/tests/test_util.py
@@ -70,13 +70,13 @@ I hope you like unit tests JUST AS MUCH AS I DO!"""
I hope you like unit tests JUST AS MUCH AS I DO!"""
def test_slugify():
- assert url.slugify('a walk in the park') == 'a-walk-in-the-park'
- assert url.slugify('A Walk in the Park') == 'a-walk-in-the-park'
- assert url.slugify('a walk in the park') == 'a-walk-in-the-park'
- assert url.slugify('a walk in-the-park') == 'a-walk-in-the-park'
- assert url.slugify('a w@lk in the park?') == 'a-w-lk-in-the-park'
- assert url.slugify(u'a walk in the par\u0107') == 'a-walk-in-the-parc'
- assert url.slugify(u'\u00E0\u0042\u00E7\u010F\u00EB\u0066') == 'abcdef'
+ assert url.slugify(u'a walk in the park') == u'a-walk-in-the-park'
+ assert url.slugify(u'A Walk in the Park') == u'a-walk-in-the-park'
+ assert url.slugify(u'a walk in the park') == u'a-walk-in-the-park'
+ assert url.slugify(u'a walk in-the-park') == u'a-walk-in-the-park'
+ assert url.slugify(u'a w@lk in the park?') == u'a-w-lk-in-the-park'
+ assert url.slugify(u'a walk in the par\u0107') == u'a-walk-in-the-parc'
+ assert url.slugify(u'\u00E0\u0042\u00E7\u010F\u00EB\u0066') == u'abcdef'
def test_locale_to_lower_upper():
"""