def test_google_art_finds_image(self):
    album = _common.Bag(albumartist='some artist', album='some album')
    json = b'{"items": [{"link": "url_to_the_image"}]}'
    self.mock_response(fetchart.GoogleImages.URL, json)
    result_url = self.source.get(album)
    self.assertEqual(list(result_url)[0], 'url_to_the_image')
def test_google_art_finds_image(self):
    album = _common.Bag(albumartist='some artist', album='some album')
    json = b'{"items": [{"link": "url_to_the_image"}]}'
    self.mock_response(fetchart.GoogleImages.URL, json)
    result_url = self.source.get(album)
    self.assertEqual(list(result_url)[0], 'url_to_the_image')