Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 def test_different_album_asis(self):
     res = importer._duplicate_check(self.lib, self._album_task(True, "xxx", "yyy"))
     self.assertFalse(res)
Exemple #5
0
 def test_duplicate_album_asis(self):
     res = importer._duplicate_check(self.lib, self._album_task(True))
     self.assertTrue(res)
Exemple #6
0
 def test_different_album_apply(self):
     res = importer._duplicate_check(self.lib,
                                     self._album_task(False, 'xxx', 'yyy'))
     self.assertFalse(res)
Exemple #7
0
 def test_duplicate_album_existing(self):
     res = importer._duplicate_check(self.lib,
                                     self._album_task(False, existing=True))
     self.assertFalse(res)
Exemple #8
0
 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)
Exemple #9
0
 def test_different_album(self):
     res = importer._duplicate_check(self.lib, "xxx", "yyy")
     self.assertFalse(res)
Exemple #10
0
 def test_duplicate_album_asis(self):
     res = importer._duplicate_check(self.lib, self._album_task(True))
     self.assertTrue(res)
Exemple #11
0
 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)
Exemple #12
0
 def test_different_album(self):
     res = importer._duplicate_check(self.lib, 'xxx', 'yyy')
     self.assertFalse(res)
Exemple #13
0
 def test_duplicate_album(self):
     res = importer._duplicate_check(self.lib, self.i.albumartist,
                                     self.i.album)
     self.assertTrue(res)
Exemple #14
0
 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)
Exemple #15
0
 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)
Exemple #16
0
 def test_different_album_asis(self):
     res = importer._duplicate_check(self.lib,
                                     self._album_task(True, 'xxx', 'yyy'))
     self.assertFalse(res)
Exemple #17
0
 def test_duplicate_album_existing(self):
     res = importer._duplicate_check(self.lib, self._album_task(False, existing=True))
     self.assertFalse(res)
Exemple #18
0
 def test_duplicate_album(self):
     res = importer._duplicate_check(self.lib, self.i.albumartist, self.i.album)
     self.assertTrue(res)