Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/pithos_tests.py   synnefo(Download)
            container['name'].lower().startswith('cont'))]
        self.assertTrue(cont1['name'] in conames)
        self.assertFalse(cont3['name'] in conames)
        self.info('Marker-limit combination works')
 
        resp = pithos.get_object_info(obj)
        self.assertTrue('x-object-meta-newmeta' in resp)
        self.assertFalse('x-object-meta-%s' % self.obj_metakey not in resp)
        self.info('Metadata with update=False works')
 
 
        resp = pithos.get_object_sharing(trg)
        self.assertFalse('read' in resp or 'u2' in resp['write'])
        self.assertTrue('accx:groupb' in resp['write'])
        self.info('Sharing is OK')
 
        resp = pithos.get_object_sharing(obj + '0')
        self.assertFalse('read' in resp)
        self.assertTrue('u5' in resp['write'])
        self.assertTrue('accx:groupb' in resp['write'])
        pithos.del_object_meta(obj, 'mkey1')
        resp = pithos.get_object_meta(obj)
        self.assertFalse('x-object-meta-mkey1' in resp)
        self.info('Metadata are OK (ascii and unicode)')