def test_delete_configuration(self): mocked_session = create_mocked_session() client = Azion(session=mocked_session) client.delete_configuration(1) mocked_session.delete.assert_called_once_with( 'https://api.azion.net/content_delivery/configurations/1')
def test_delete_configuration(self): client = Azion(token) recorder = betamax.Betamax(client.session) with recorder.use_cassette('Configuration_delete'): assert client.delete_configuration(1528252734)