Revision c2b5da2f kamaki/clients/livetest/pithos.py
b/kamaki/clients/livetest/pithos.py | ||
---|---|---|
154 | 154 |
if_modified_since=now_formated, |
155 | 155 |
success=(204, 304, 412)) |
156 | 156 |
sc1 = r1.status_code |
157 |
r1.release() |
|
158 | 157 |
r2 = self.client.account_head( |
159 | 158 |
if_unmodified_since=now_formated, |
160 | 159 |
success=(204, 304, 412)) |
161 | 160 |
sc2 = r2.status_code |
162 |
r2.release() |
|
163 | 161 |
self.assertNotEqual(sc1, sc2) |
164 | 162 |
|
165 | 163 |
def test_account_get(self): |
... | ... | |
199 | 197 |
if_modified_since=now_formated, |
200 | 198 |
success=(200, 304, 412)) |
201 | 199 |
sc1 = r1.status_code |
202 |
r1.release() |
|
203 | 200 |
r2 = self.client.account_get( |
204 | 201 |
if_unmodified_since=now_formated, |
205 | 202 |
success=(200, 304, 412)) |
206 | 203 |
sc2 = r2.status_code |
207 |
r2.release() |
|
208 | 204 |
self.assertNotEqual(sc1, sc2) |
209 | 205 |
|
210 | 206 |
"""Check sharing_accounts""" |
... | ... | |
296 | 292 |
if_modified_since=now_formated, |
297 | 293 |
success=(204, 304, 412)) |
298 | 294 |
sc1 = r1.status_code |
299 |
r1.release() |
|
300 | 295 |
r2 = self.client.container_head( |
301 | 296 |
if_unmodified_since=now_formated, |
302 | 297 |
success=(204, 304, 412)) |
303 | 298 |
sc2 = r2.status_code |
304 |
r2.release() |
|
305 | 299 |
self.assertNotEqual(sc1, sc2) |
306 | 300 |
|
307 | 301 |
"""Check container object meta""" |
... | ... | |
363 | 357 |
if_modified_since=now_formated, |
364 | 358 |
success=(200, 304, 412)) |
365 | 359 |
sc1 = r1.status_code |
366 |
r1.release() |
|
367 | 360 |
r2 = self.client.container_get( |
368 | 361 |
if_unmodified_since=now_formated, |
369 | 362 |
success=(200, 304, 412)) |
370 | 363 |
sc2 = r2.status_code |
371 |
r2.release() |
|
372 | 364 |
self.assertNotEqual(sc1, sc2) |
373 | 365 |
|
374 | 366 |
def test_container_put(self): |
... | ... | |
579 | 571 |
if_modified_since=now_formated, |
580 | 572 |
success=(200, 304, 412)) |
581 | 573 |
sc1 = r1.status_code |
582 |
r1.release() |
|
583 | 574 |
r2 = self.client.object_head( |
584 | 575 |
obj, |
585 | 576 |
if_unmodified_since=now_formated, |
586 | 577 |
success=(200, 304, 412)) |
587 | 578 |
sc2 = r2.status_code |
588 |
r2.release() |
|
589 | 579 |
self.assertNotEqual(sc1, sc2) |
590 | 580 |
|
591 | 581 |
def test_object_get(self): |
... | ... | |
640 | 630 |
if_modified_since=now_formated, |
641 | 631 |
success=(200, 304, 412)) |
642 | 632 |
sc1 = r1.status_code |
643 |
r1.release() |
|
644 | 633 |
r2 = self.client.object_get( |
645 | 634 |
obj, |
646 | 635 |
if_unmodified_since=now_formated, |
647 | 636 |
success=(200, 304, 412)) |
648 | 637 |
sc2 = r2.status_code |
649 |
r2.release() |
|
650 | 638 |
self.assertNotEqual(sc1, sc2) |
651 | 639 |
|
652 | 640 |
"""Upload an object to download""" |
Also available in: Unified diff