~elopio/+junk/cloudspaces

« back to all changes in this revision

Viewing changes to src/cloudspacesclient/ubuntuone.py

  • Committer: Leo Arias
  • Date: 2013-11-17 11:43:50 UTC
  • Revision ID: leo.arias@canonical.com-20131117114350-yd8806mgu16dtsu4
Added more tests to the u1 server adapter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    def _get_u1_api_client(self, user):
84
84
        url = urlparse.urljoin(U1_SERVER_URL, 'api/')
85
85
        auth = self.get_auth_credentials(user)
86
 
        return UbuntuOneAPI(url, auth)
 
86
        return UbuntuOneAPIClient(url, auth)
87
87
 
88
88
    def delete_test_user(self, user):
89
89
        # Currently we can't delete users from U1 and SSO.
105
105
            response.get('token_key'), response.get('token_secret'))
106
106
 
107
107
 
108
 
class UbuntuOneAPI(object):
 
108
class UbuntuOneAPIClient(object):
109
109
 
110
110
    content_type = JSON_MIME_TYPE
111
111
 
112
112
    def __init__(self, service_root_url, auth):
113
 
        super(UbuntuOneAPI, self).__init__()
 
113
        super(UbuntuOneAPIClient, self).__init__()
114
114
        self.service_root_url = service_root_url
115
115
        self.auth = auth
116
116