def get_first_oembed_response(oembed_urls, max_width=None, max_height=None):
    for oembed_url in oembed_urls:
        try:
            return get_oembed_response(oembed_url, max_width=max_width, max_height=max_height)
        except PyEmbedError:
            logging.warn('Error consuming URL %s' % oembed_url, exc_info=True)

    raise PyEmbedConsumerError('No valid OEmbed responses for URLs %s' % oembed_urls)
Test if methods call the services as expected.
dataset/ETHPy150Open pyembed/pyembed/pyembed/core/consumer.py/get_first_oembed_response--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/light/test_init.py/TestLight.test_methods