summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2020-05-26 22:39:03 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-29 06:28:57 +0200
commitdde05e192c15158cd2ea918ce2ee7a2b9b6ceba6 (patch)
tree04cdd1caeee0f96d5343b1630e2effa8e6d33a50 /tests/utils_tests
parent3bc4240d979812bd11365ede04c028ea13fdc8c6 (diff)
Added more tests for slugify().
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_text.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils_tests/test_text.py b/tests/utils_tests/test_text.py
index 9dbf9367c3..2310c9c2a0 100644
--- a/tests/utils_tests/test_text.py
+++ b/tests/utils_tests/test_text.py
@@ -192,6 +192,9 @@ class TestUtilsText(SimpleTestCase):
# given - expected - Unicode?
('Hello, World!', 'hello-world', False),
('spam & eggs', 'spam-eggs', False),
+ (' multiple---dash and space ', 'multiple-dash-and-space', False),
+ ('\t whitespace-in-value \n', 'whitespace-in-value', False),
+ ('underscore_in-value', 'underscore_in-value', False),
('spam & ıçüş', 'spam-ıçüş', True),
('foo ıç bar', 'foo-ıç-bar', True),
(' foo ıç bar', 'foo-ıç-bar', True),