mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 19:04:09 +00:00
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user