Revision 785b478b
b/kamaki/clients/test/image.py | ||
---|---|---|
324 | 324 |
self.client.http_client.path, |
325 | 325 |
'/images/%s/members/%s' % (img0['id'], old_member)) |
326 | 326 |
|
327 |
""" |
|
328 | 327 |
def test_list_shared(self): |
329 |
#No way to test this, if I dont have member images |
|
330 |
pass |
|
331 |
""" |
|
328 |
img0 = example_images_detailed[0] |
|
329 |
self.FR.json = dict(shared_images=example_images) |
|
330 |
with patch.object(self.C, 'perform_request', return_value=self.FR()): |
|
331 |
r = self.client.list_shared(img0['id']) |
|
332 |
self.assertEqual(self.client.http_client.url, self.url) |
|
333 |
self.assertEqual( |
|
334 |
self.client.http_client.path, |
|
335 |
'/shared-images/%s' % img0['id']) |
|
336 |
for i in range(len(r)): |
|
337 |
self.assert_dicts_are_deeply_equal(r[i], example_images[i]) |
Also available in: Unified diff