diff options
| author | Val Neekman <val@neekware.com> | 2019-10-10 18:12:07 -0400 |
|---|---|---|
| committer | Val Neekman <val@neekware.com> | 2019-10-10 18:12:07 -0400 |
| commit | 33bf07efc82c00b811df02bca8c5862f95db3294 (patch) | |
| tree | 5ce14d61e8f5faff7e5238c6292723cc3ad9d05d /test.py | |
| parent | 67c16a409063578d38bf69ee345254e67b237206 (diff) | |
| download | python-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.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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): |
