Add a failing test for slugify

slugify removes all non-ASCII characters. For names that contain only
non-ASCII characters, this is a problem.
This commit is contained in:
Jordan Christiansen 2020-06-11 08:45:35 -05:00 committed by Mathieu Comandon
parent 53c98f5f7e
commit 105cb10cbb

View file

@ -62,6 +62,11 @@ class TestSteamUtils(TestCase):
class TestStringUtils(TestCase):
def test_slugify_with_nonwestern_name(self):
name = 'メイド☆ぱらだいす ~目指せ!メイドナンバーワン!~'
slug = strings.slugify(name)
self.assertTrue(len(slug) > 0)
def test_add_url_tags(self):
self.assertEqual(strings.add_url_tags("foo bar"), "foo bar")
self.assertEqual(