~ubuntu-branches/ubuntu/quantal/python-keystoneclient/quantal

« back to all changes in this revision

Viewing changes to tests/v2_0/test_users.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-09 12:43:10 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120309124310-kvw4nnsreqc48de9
Tags: 2012.1~rc1~20120307.0-0ubuntu1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
            "body": json.dumps({'user': self.TEST_USERS['users']['values'][0]})
88
88
            })
89
89
        httplib2.Http.request(urlparse.urljoin(self.TEST_URL,
90
 
                              'v2.0/users/1?fresh=1234'),
 
90
                              'v2.0/users/1'),
91
91
                              'GET',
92
92
                              headers=self.TEST_REQUEST_HEADERS) \
93
93
                              .AndReturn((resp, resp['body']))
105
105
            })
106
106
 
107
107
        httplib2.Http.request(urlparse.urljoin(self.TEST_URL,
108
 
                              'v2.0/users?fresh=1234'),
 
108
                              'v2.0/users'),
109
109
                              'GET',
110
110
                              headers=self.TEST_REQUEST_HEADERS) \
111
111
                              .AndReturn((resp, resp['body']))
121
121
            })
122
122
 
123
123
        httplib2.Http.request(urlparse.urljoin(self.TEST_URL,
124
 
                              'v2.0/users?limit=1&fresh=1234'),
 
124
                              'v2.0/users?limit=1'),
125
125
                              'GET',
126
126
                              headers=self.TEST_REQUEST_HEADERS) \
127
127
                              .AndReturn((resp, resp['body']))
137
137
            })
138
138
 
139
139
        httplib2.Http.request(urlparse.urljoin(self.TEST_URL,
140
 
                              'v2.0/users?marker=1&fresh=1234'),
 
140
                              'v2.0/users?marker=1'),
141
141
                              'GET',
142
142
                              headers=self.TEST_REQUEST_HEADERS) \
143
143
                              .AndReturn((resp, resp['body']))
153
153
            })
154
154
 
155
155
        httplib2.Http.request(urlparse.urljoin(self.TEST_URL,
156
 
                              'v2.0/users?marker=1&limit=1&fresh=1234'),
 
156
                              'v2.0/users?marker=1&limit=1'),
157
157
                              'GET',
158
158
                              headers=self.TEST_REQUEST_HEADERS) \
159
159
                              .AndReturn((resp, resp['body']))