

def test_single_tenant_location_http(self):
    conf_file = 'glance-swift.conf'
    test_dir = self.useFixture(fixtures.TempDir()).path
    self.swift_config_file = self.copy_data_file(conf_file, test_dir)
    self.config(swift_store_container='container', default_swift_reference='ref2', swift_store_config_file=self.swift_config_file)
    store = swift.SingleTenantStore(self.conf)
    store.configure()
    location = location.create_location('image-id')
    self.assertEqual(location.scheme, 'swift+http')
    self.assertEqual(location.swift_url, 'http://example.com')

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestCreatingLocations.test_single_tenant_location_http/VarMisuse@80/121 `store`->`location`