def _post_clients(self, client, user_ids, token_generator):
    '\n        Helper function that creates (and tests creating) a collection of Clients.\n        '
    headers = {'content-type': 'application/json', 'authorization': f'bearer {token_generator.get_token(client)}'}
    client_ids = []
    for (i, api_client) in enumerate(CLIENTS):
        api_client['user_id'] = user_ids[i]
        response = client.post('/clients', data=json.dumps(api_client), headers=headers)
        expect(response.status_code).to(equal(201))
        client_ids.append(response.json['response'][0]['id'])
    expect(len(client_ids)).to(equal(8))
    return client_ids
Helper function that creates (and tests creating) a collection of Clients.
def _post_clients(self, client, user_ids, token_generator):
    '\n        \n        '
    headers = {'content-type': 'application/json', 'authorization': f'bearer {token_generator.get_token(client)}'}
    client_ids = []
    for (i, api_client) in enumerate(CLIENTS):
        api_client['user_id'] = user_ids[i]
        response = client.post('/clients', data=json.dumps(api_client), headers=headers)
        expect(response.status_code).to(equal(201))
        client_ids.append(response.json['response'][0]['id'])
    expect(len(client_ids)).to(equal(8))
    return client_ids