Revision 3941857a
b/kamaki/clients/storage/test.py | ||
---|---|---|
343 | 343 |
'/%s/%s/%s' % (self.client.account, self.client.container, obj), |
344 | 344 |
success=202)) |
345 | 345 |
|
346 |
""" |
|
347 | 346 |
@patch('%s.post' % client_pkg, return_value=FR()) |
348 | 347 |
@patch('%s.set_header' % client_pkg) |
349 | 348 |
def test_replace_object_meta(self, SH, post): |
... | ... | |
354 | 353 |
self.assertEqual(post.mock_calls[-1], expected) |
355 | 354 |
prfx = 'X-Object-Meta-' |
356 | 355 |
expected = [call('%s%s' % (prfx, k), v) for k, v in metas.items()] |
357 |
self.assertEqual(PC.set_header.mock_calls, expected)
|
|
356 |
self.assertEqual(SH.mock_calls, expected)
|
|
358 | 357 |
|
358 |
""" |
|
359 | 359 |
@patch('%s.object_put' % pithos_pkg, return_value=FR()) |
360 | 360 |
def test_copy_object(self, put): |
361 | 361 |
src_cont = 'src-c0nt41n3r' |
Also available in: Unified diff