def _cleanup(self, client, token_generator, role_ids=[], user_ids=[]):
    headers = {'content-type': 'application/json', 'authorization': f'bearer {token_generator.get_token(client)}'}
    for role_id in role_ids:
        response = client.delete('/roles/{}'.format(role_id), headers=headers)
        expect(response.status_code).to(equal(200))
    for user_id in user_ids:
        response = client.delete('/users/{}'.format(user_id), headers=headers)
        expect(response.status_code).to(equal(200))
def _cleanup(self, client, token_generator, role_ids=[], user_ids=[]):
    headers = {'content-type': 'application/json', 'authorization': f'bearer {token_generator.get_token(client)}'}
    for role_id in role_ids:
        response = client.delete('/roles/{}'.format(role_id), headers=headers)
        expect(response.status_code).to(equal(200))
    for user_id in user_ids:
        response = client.delete('/users/{}'.format(user_id), headers=headers)
        expect(response.status_code).to(equal(200))