'Verify that providers list is cached.'

@httpretty.activate
def test_get_credit_provider_display_names_caching(self):

    self.assertTrue(self.credit_config.is_cache_enabled)
    self._mock_ecommerce_courses_api(self.course_key, self.COURSE_API_RESPONSE)
    response_providers = get_credit_provider_display_names(self.course_key)
    self.assertListEqual(self.PROVIDERS_LIST, response_providers)
    response_providers = get_credit_provider_display_names(self.course_key)
    self.assertListEqual(self.PROVIDERS_LIST, response_providers)
    self.assertEqual(len(httpretty.httpretty.latest_requests), 1)
