

def test_connection_with_auth_v1(self):
    self.config(swift_store_auth_version='1')
    self.store.configure()
    self.location.user = 'auth_v1_user'
    connection = self.store.get_connection(self.location)
    self.assertEqual(connection.auth_version, '1')
    self.assertEqual(connection.user, 'auth_v1_user')
    self.assertIsNone(connection.tenant_name)

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