From dde05e192c15158cd2ea918ce2ee7a2b9b6ceba6 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 26 May 2020 22:39:03 +0100 Subject: [PATCH] Added more tests for slugify(). --- tests/utils_tests/test_text.py | 3 +++ 1 file changed, 3 insertions(+) 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),