

def test_multi_tenant_location_http(self):
    store = swift.MultiTenantStore(self.conf)
    store.configure()
    self.ctxt.service_catalog[0]['endpoints'][0]['publicURL'] = 'http://some_endpoint'
    location = store.create_location('image-id', context=self.ctxt)
    self.assertEqual('swift+http', location.scheme)
    self.assertEqual('http://some_endpoint', location.swift_url)

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