Revision 468b8b86 pithos/api/tests.py
b/pithos/api/tests.py | ||
---|---|---|
215 | 215 |
path = '/v1/%s/%s/%s' %(account, container, name) |
216 | 216 |
response = self.client.head(path) |
217 | 217 |
response.content = response.content |
218 |
self.assert_status(response, 204)
|
|
218 |
self.assert_status(response, 200)
|
|
219 | 219 |
return response |
220 | 220 |
|
221 | 221 |
def get_object(self, account, container, name, format='', **headers): |
... | ... | |
1423 | 1423 |
#assert src object still exists |
1424 | 1424 |
r = self.get_object_meta(self.account, self.containers[0], |
1425 | 1425 |
self.obj['name']) |
1426 |
self.assertEqual(r.status_code, 204)
|
|
1426 |
self.assertEqual(r.status_code, 200)
|
|
1427 | 1427 |
|
1428 | 1428 |
def test_copy_from_different_container(self): |
1429 | 1429 |
with AssertInvariant(self.get_object_meta, |
... | ... | |
1449 | 1449 |
#assert src object still exists |
1450 | 1450 |
r = self.get_object_meta(self.account, self.containers[0], |
1451 | 1451 |
self.obj['name']) |
1452 |
self.assertEqual(r.status_code, 204)
|
|
1452 |
self.assertEqual(r.status_code, 200)
|
|
1453 | 1453 |
|
1454 | 1454 |
def test_copy_invalid(self): |
1455 | 1455 |
#copy from invalid object |
Also available in: Unified diff