def _assertImageIsValidArt(self, image_file, should_exist):
    self.assertExists(image_file)
    self.image_file = image_file
    local_artpath = self.plugin.art_for_album(None, [''], True)
    remote_artpath = self.plugin.art_for_album(None, [], False)
    self.assertEqual(local_artpath, remote_artpath)
    if should_exist:
        self.assertEqual(local_artpath, self.image_file)
        self.assertExists(local_artpath)
        return local_artpath
    else:
        self.assertIsNone(local_artpath)
def _assertImageIsValidArt(self, image_file, should_exist):
    self.assertExists(image_file)
    self.image_file = image_file
    local_artpath = self.plugin.art_for_album(None, [], True)
    remote_artpath = self.plugin.art_for_album(None, [], False)
    self.assertEqual(local_artpath, remote_artpath)
    if should_exist:
        self.assertEqual(local_artpath, self.image_file)
        self.assertExists(local_artpath)
        return local_artpath
    else:
        self.assertIsNone(local_artpath)