Skip to content

Commit dde05e1

Browse files
smithdc1felixxm
authored andcommitted
Added more tests for slugify().
1 parent 3bc4240 commit dde05e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/utils_tests/test_text.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def test_slugify(self):
192192
# given - expected - Unicode?
193193
('Hello, World!', 'hello-world', False),
194194
('spam & eggs', 'spam-eggs', False),
195+
(' multiple---dash and space ', 'multiple-dash-and-space', False),
196+
('\t whitespace-in-value \n', 'whitespace-in-value', False),
197+
('underscore_in-value', 'underscore_in-value', False),
195198
('spam & ıçüş', 'spam-ıçüş', True),
196199
('foo ıç bar', 'foo-ıç-bar', True),
197200
(' foo ıç bar', 'foo-ıç-bar', True),

0 commit comments

Comments
 (0)