Revision ec1d0bbe
b/kamaki/clients/test/pithos.py | ||
---|---|---|
924 | 924 |
self.client.del_container_meta('somekey') |
925 | 925 |
expected = [call(update=True, metadata={'somekey': ''})] |
926 | 926 |
self.assertEqual(ap.mock_calls, expected) |
927 |
|
|
928 |
def test_set_container_quota(self): |
|
929 |
qu = 1024 |
|
930 |
with patch.object(PC, 'container_post', return_value=FR()) as post: |
|
931 |
self.client.set_container_quota(qu) |
|
932 |
self.assertEqual(post.mock_calls[-1], call(update=True, quota=qu)) |
|
933 |
|
|
934 |
def test_set_container_versioning(self): |
|
935 |
vrs = 'n3wV3r51on1ngTyp3' |
|
936 |
with patch.object(PC, 'container_post', return_value=FR()) as post: |
|
937 |
self.client.set_container_versioning(vrs) |
|
938 |
self.assertEqual( |
|
939 |
post.mock_calls[-1], |
|
940 |
call(update=True, versioning=vrs)) |
Also available in: Unified diff