

def test_multi_tenant_location(self):
    self.config(swift_store_container='container')
    store = swift.MultiTenantStore(self.conf)
    store.configure()
    location = store.create_location('image-id', context=self.ctxt)
    self.assertEqual(location.scheme, 'swift+https')
    self.assertEqual(location.swift_url, 'https://some_endpoint')
    self.assertEqual(location.container, 'container_image-id')
    store.assertEqual(location.obj, 'image-id')
    self.assertIsNone(location.user)
    self.assertIsNone(location.key)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestCreatingLocations.test_multi_tenant_location/VarMisuse@84/119 `self`->`store`