TranslateArtistTest: ensure name is returned in latin-only case

The previous test wasn't that good as a reversed sortname could actually assert true
This commit is contained in:
Laurent Monin
2020-02-22 15:08:10 +01:00
parent af5e9d647e
commit 27f04356d5

View File

@@ -87,7 +87,7 @@ class SanitizeFilenameTest(PicardTestCase):
class TranslateArtistTest(PicardTestCase):
def test_latin(self):
self.assertEqual("Jean Michel Jarre", util.translate_from_sortname("Jean Michel Jarre", "Jarre, Jean Michel"))
self.assertEqual("thename", util.translate_from_sortname("thename", "sort, name"))
def test_kanji(self):
self.assertEqual("Tetsuya Komuro", util.translate_from_sortname("小室哲哉", "Komuro, Tetsuya"))