def test_list_configurations(self): client = Azion(token) recorder = betamax.Betamax(client.session) with recorder.use_cassette('Configuration_list'): configurations = client.list_configurations() assert configurations assert isinstance(configurations, list) assert all( isinstance(configuration, Configuration) for configuration in configurations)
def test_list_configurations(self): mocked_session = create_mocked_session() client = Azion(session=mocked_session) client.list_configurations() mocked_session.get.assert_called_once_with( 'https://api.azion.net/content_delivery/configurations')