From 1b0933daa99f44fadca554aa67f55ffa6d179663 Mon Sep 17 00:00:00 2001 From: Fabrice Laporte Date: Mon, 10 Nov 2014 22:37:19 +0100 Subject: [PATCH] fetchart: fix tests to handle generators --- test/test_art.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_art.py b/test/test_art.py index 33a7826bf..22ead0c04 100644 --- a/test/test_art.py +++ b/test/test_art.py @@ -225,14 +225,14 @@ class GoogleImageTest(_common.TestCase): [{"unescapedUrl": "url_to_the_image"}]}}""" self.mock_response(self._google_url, json) result_url = fetchart.google_art(album) - self.assertEqual(result_url, 'url_to_the_image') + self.assertEqual(list(result_url)[0], 'url_to_the_image') def test_google_art_dont_finds_image(self): album = _common.Bag(albumartist="some artist", album="some album") json = """bla blup""" self.mock_response(self._google_url, json) result_url = fetchart.google_art(album) - self.assertEqual(result_url, None) + self.assertEqual(list(result_url), []) class ArtImporterTest(_common.TestCase):