

def test_multi_tenant_location_custom_service_type(self):
    self.config(swift_store_service_type='toy-store')
    self.ctxt.service_catalog[0]['type'] = 'toy-store'
    store = swift.MultiTenantStore(self.conf)
    store.configure()
    store._get_endpoint(self.ctxt)
    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_custom_service_type/original