def test_duplicate_asis(self): res = commands._duplicate_check(self.lib, commands.CHOICE_ASIS, None, self.i.albumartist, self.i.album) self.assertTrue(res)
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)
def test_different_album(self): info = {'artist': 'xxx', 'album': 'yyy'} res = commands._duplicate_check(self.lib, None, info, None, None) self.assertFalse(res)