Added more tests for slugify().

This commit is contained in:
David Smith 2020-05-26 22:39:03 +01:00 committed by Mariusz Felisiak
parent 3bc4240d97
commit dde05e192c
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ class TestUtilsText(SimpleTestCase):
# given - expected - Unicode? # given - expected - Unicode?
('Hello, World!', 'hello-world', False), ('Hello, World!', 'hello-world', False),
('spam & eggs', 'spam-eggs', 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), ('spam & ıçüş', 'spam-ıçüş', True),
('foo ıç bar', 'foo-ıç-bar', True), ('foo ıç bar', 'foo-ıç-bar', True),
(' foo ıç bar', 'foo-ıç-bar', True), (' foo ıç bar', 'foo-ıç-bar', True),