Exemple #1
0
 def test_duplicate_asis(self):
     res = commands._duplicate_check(self.lib, commands.CHOICE_ASIS,
                                     None, self.i.albumartist, self.i.album)
     self.assertTrue(res)
Exemple #2
0
 def test_duplicate_va_album(self):
     self.album.albumartist = 'an album artist'
     info = {'artist': 'an album artist', 'album': self.i.album}
     res = commands._duplicate_check(self.lib, None, info, None, None)
     self.assertTrue(res)
Exemple #3
0
 def test_different_album(self):
     info = {'artist': 'xxx', 'album': 'yyy'}
     res = commands._duplicate_check(self.lib, None, info, None, None)
     self.assertFalse(res)