def test_recent_album(self): recent = set() importer._duplicate_check(self.lib, self._album_task(False, 'xxx', 'yyy'), recent) res = importer._duplicate_check(self.lib, self._album_task(False, 'xxx', 'yyy'), recent) self.assertTrue(res)
def test_duplicate_va_album(self): self.album.albumartist = 'an album artist' self.album.store() res = importer._duplicate_check( self.lib, self._album_task(False, 'an album artist') ) self.assertTrue(res)
def test_different_album_asis(self): res = importer._duplicate_check(self.lib, self._album_task(True, "xxx", "yyy")) self.assertFalse(res)
def test_duplicate_album_asis(self): res = importer._duplicate_check(self.lib, self._album_task(True)) self.assertTrue(res)
def test_different_album_apply(self): res = importer._duplicate_check(self.lib, self._album_task(False, 'xxx', 'yyy')) self.assertFalse(res)
def test_duplicate_album_existing(self): res = importer._duplicate_check(self.lib, self._album_task(False, existing=True)) self.assertFalse(res)
def test_duplicate_va_album(self): self.album.albumartist = 'an album artist' res = importer._duplicate_check( self.lib, self._album_task(False, 'an album artist')) self.assertTrue(res)
def test_different_album(self): res = importer._duplicate_check(self.lib, "xxx", "yyy") self.assertFalse(res)
def test_duplicate_va_album(self): self.album.albumartist = 'an album artist' res = importer._duplicate_check(self.lib, 'an album artist', self.i.album) self.assertTrue(res)
def test_different_album(self): res = importer._duplicate_check(self.lib, 'xxx', 'yyy') self.assertFalse(res)
def test_duplicate_album(self): res = importer._duplicate_check(self.lib, self.i.albumartist, self.i.album) self.assertTrue(res)
def test_duplicate_va_album(self): self.album.albumartist = "an album artist" res = importer._duplicate_check(self.lib, "an album artist", self.i.album) self.assertTrue(res)
def test_duplicate_va_album(self): self.album.albumartist = "an album artist" res = importer._duplicate_check(self.lib, self._album_task(False, "an album artist")) self.assertTrue(res)
def test_different_album_asis(self): res = importer._duplicate_check(self.lib, self._album_task(True, 'xxx', 'yyy')) self.assertFalse(res)