def test_main_interface_gives_precedence_to_fs_art(self):
    _common.touch(os.path.join(self.dpath, 'art.jpg'))
    self.mock_response(self.AMAZON_URL)
    album = _common.Bag(asin=self.ASIN)
    artpath = self.plugin.art_for_album(album, [self.dpath])
    self.assertEqual(artpath, os.path.join(self.dpath, 'art.jpg'))
def test_main_interface_gives_precedence_to_fs_art(self):
    _common.touch(os.path.join(self.dpath, 'art.jpg'))
    self.mock_response(self.AMAZON_URL)
    album = _common.Bag(asin=self.ASIN)
    artpath = self.plugin.art_for_album(album, [self.dpath])
    self.assertEqual(artpath, os.path.join(self.dpath, 'art.jpg'))