

def test_basic_connection(self):
    connection = self.store.get_connection(self.location)
    self.assertEqual(connection.authurl, 'https://example.com/v2/')
    self.assertEqual(connection.auth_version, '2')
    self.assertEqual(connection.user, 'user1')
    self.assertEqual(connection.tenant_name, 'tenant')
    self.assertEqual(connection.key, 'key1')
    self.assertIsNone(connection.preauthurl)
    self.assertFalse(connection.insecure)
    self.assertEqual(connection.os_options, {
        'service_type': 'object-store',
        'endpoint_type': 'publicURL',
    })

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