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