

def test_connection_with_region(self):
    self.config(swift_store_region='Sahara')
    self.store.configure()
    connection = self.store.get_connection(self.location)
    self.assertEqual(connection.os_options, {
        'region_name': 'Sahara',
        'service_type': 'object-store',
        'endpoint_type': 'publicURL',
    })

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestSingleTenantStoreConnections.test_connection_with_region/original