def test_main_interface_tries_amazon_before_aao(self):
    self.mock_response(self.AMAZON_URL)
    album = _common.Bag(asin=self.ASIN)
    self.plugin.art_for_album(album, [self.dpath])
    self.assertEqual(len(responses.calls), 1)
    self.assertEqual(responses.calls[0].request.url, self.AMAZON_URL)
def test_main_interface_tries_amazon_before_aao(self):
    self.mock_response(self.AMAZON_URL)
    album = _common.Bag(asin=self.ASIN)
    self.plugin.art_for_album(album, [self.dpath])
    self.assertEqual(len(responses.calls), 1)
    self.assertEqual(responses.calls[0].request.url, self.AMAZON_URL)