mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
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:
parent
53c98f5f7e
commit
105cb10cbb
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue