Revision 79a6b6ee pithos/api/tests.py
b/pithos/api/tests.py | ||
---|---|---|
254 | 254 |
self.assert_status(response, 201) |
255 | 255 |
return response |
256 | 256 |
|
257 |
def update_object(self, account, container, name, data={},
|
|
258 |
content_type='MULTIPART_CONTENT', **headers):
|
|
257 |
def update_object(self, account, container, name, data='',
|
|
258 |
content_type='', **headers): |
|
259 | 259 |
path = '/v1/%s/%s/%s' %(account, container, name) |
260 | 260 |
response = self.client.post(path, data, content_type, **headers) |
261 | 261 |
response.content = response.content |
... | ... | |
670 | 670 |
r = self.update_object(self.account, |
671 | 671 |
self.container[0], |
672 | 672 |
self.obj[0]['name'], |
673 |
|
|
673 | 674 |
**meta) |
674 | 675 |
r = self.list_objects(self.account, |
675 | 676 |
self.container[0], |
Also available in: Unified diff