

def test_multi_tenant_location_with_region(self):
    self.config(swift_store_region='WestCarolina')
    store = swift.MultiTenantStore(self.conf)
    store.configure()
    self.ctxt.service_catalog[0]['endpoints'][0]['region'] = 'WestCarolina'
    self.assertEqual('https://some_endpoint', store._get_endpoint(self.ctxt))

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestCreatingLocations.test_multi_tenant_location_with_region/original