示例#1
0
文件: test_ui.py 项目: jeffayle/beets
 def test_duplicate_asis(self):
     res = commands._duplicate_check(self.lib, commands.CHOICE_ASIS,
                                     None, self.i.albumartist, self.i.album)
     self.assertTrue(res)
示例#2
0
文件: test_ui.py 项目: jeffayle/beets
 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)
示例#3
0
文件: test_ui.py 项目: jeffayle/beets
 def test_different_album(self):
     info = {'artist': 'xxx', 'album': 'yyy'}
     res = commands._duplicate_check(self.lib, None, info, None, None)
     self.assertFalse(res)