def test_main_interface_uses_caa_when_mbid_available(self):
    self.mock_response(self.CAA_URL)
    album = _common.Bag(mb_albumid=self.MBID, asin=self.ASIN)
    artpath = self.plugin.art_for_album(album, None)
    self.assertNotEqual(artpath, None)
    self.assertEqual(len(responses.calls), 1)
    self.assertEqual(responses.calls[0].request.url, self.CAA_URL)
def test_main_interface_uses_caa_when_mbid_available(self):
    self.mock_response(self.CAA_URL)
    album = _common.Bag(mb_albumid=self.MBID, asin=self.ASIN)
    artpath = self.plugin.art_for_album(album, None)
    self.assertNotEqual(artpath, None)
    self.assertEqual(len(responses.calls), 1)
    self.assertEqual(responses.calls[0].request.url, self.CAA_URL)