Add tests for client registration

Fix missing tests for client registration

Change-Id: Ic74038fc15c22ab81dd77547be4048033c131623
This commit is contained in:
Fabrizio Vanni 2015-05-05 10:26:25 +01:00
parent 0fb98abd05
commit 4565febd97
1 changed files with 5 additions and 2 deletions

View File

@ -29,8 +29,11 @@ class RegistrationManager(object):
def __init__(self, client):
self.client = client
self.endpoint = self.client.endpoint + 'clients/'
self.headers = {'X-Auth-Token': client.token}
self.endpoint = self.client.endpoint + '/v1/clients/'
@property
def headers(self):
return {'X-Auth-Token': self.client.auth_token}
def create(self, client_info):
r = requests.post(self.endpoint,