Revision 95b36144 snf-pithos-app/pithos/api/test/__init__.py
b/snf-pithos-app/pithos/api/test/__init__.py | ||
---|---|---|
325 | 325 |
self.assertEqual(r.status_code, 204) |
326 | 326 |
return r |
327 | 327 |
|
328 |
def create_container(self, cname): |
|
328 |
def create_container(self, cname=None): |
|
329 |
cname = cname or get_random_name() |
|
329 | 330 |
url = join_urls(self.pithos_path, self.user, cname) |
330 | 331 |
r = self.put(url, data='') |
331 | 332 |
self.assertTrue(r.status_code in (202, 201)) |
332 |
return r |
|
333 |
return cname, r
|
|
333 | 334 |
|
334 | 335 |
def upload_object(self, cname, oname=None, length=None, verify=True, |
335 | 336 |
**meta): |
Also available in: Unified diff