summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2019-10-10 18:12:07 -0400
committerVal Neekman <val@neekware.com>2019-10-10 18:12:07 -0400
commit33bf07efc82c00b811df02bca8c5862f95db3294 (patch)
tree5ce14d61e8f5faff7e5238c6292723cc3ad9d05d /test.py
parent67c16a409063578d38bf69ee345254e67b237206 (diff)
downloadpython-slugify-3.0.5.tar.gz
add special pre translation file, more unit test, updated readme3.0.5
Diffstat (limited to 'test.py')
-rw-r--r--test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.py b/test.py
index e1efe38..29f0ac7 100644
--- a/test.py
+++ b/test.py
@@ -223,6 +223,11 @@ class TestSlugification(unittest.TestCase):
r = slugify(txt, replacements=[['♥', 'amour'], ['🦄', 'licorne']])
self.assertEqual(r, "i-amour-licorne")
+ def test_replacements_german_umlaut_custom(self):
+ txt = 'ÜBER Über German Umlaut'
+ r = slugify(txt, replacements=[['Ü', 'UE'], ['ü', 'ue']])
+ self.assertEqual(r, "ueber-ueber-german-umlaut")
+
class TestUtils(unittest.TestCase):