Revision ae9c3b5f kamaki/clients/cyclades/test.py
b/kamaki/clients/cyclades/test.py | ||
---|---|---|
172 | 172 |
self.assertTrue(servers_get.call_args[1]['changes_since']) |
173 | 173 |
|
174 | 174 |
@patch('%s.perform_request' % khttp, return_value=FR()) |
175 |
def test_get_flavor_details(self, PR): |
|
176 |
FR.json = dict(flavor=flavor_list['flavors']) |
|
177 |
r = self.client.get_flavor_details(fid) |
|
178 |
self.assertEqual(self.client.http_client.url, self.url) |
|
179 |
self.assertEqual(self.client.http_client.path, '/flavors/%s' % fid) |
|
180 |
self.assert_dicts_are_equal(r, flavor_list['flavors']) |
|
181 |
|
|
182 |
@patch('%s.perform_request' % khttp, return_value=FR()) |
|
183 | 175 |
def test_list_images(self, PR): |
184 | 176 |
FR.json = img_list |
185 | 177 |
r = self.client.list_images() |
Also available in: Unified diff