

def test_write_acls(self):
    '\n        Test that we can set write acl for tenants.\n        '
    self.config(swift_store_multi_tenant=True)
    store = Store(self.conf)
    store.configure()
    uri = ('swift+http://storeurl/glance/%s' % FAKE_UUID)
    loc = location.get_location_from_uri(uri, conf=self.conf)
    read_tenants = ['frank', 'jim']
    ctxt = mock.MagicMock()
    store.set_acls(loc, write_tenants=self, context=ctxt)
    container_headers = swiftclient.client.head_container('x', 'y', 'glance')
    self.assertEqual(container_headers['X-Container-Write'], 'frank:*,jim:*')

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests.test_write_acls/VarMisuse@83/141 `read_tenants`->`self`