

def test_dbapi_database_deprecated_parameters(self):
    path = self.create_tempfiles([['tmp', b'[DATABASE]\nsql_connection=fake_connection\nsql_idle_timeout=100\nsql_min_pool_size=99\nsql_max_pool_size=199\nsql_max_retries=22\nreconnect_interval=17\nsqlalchemy_max_overflow=101\nsqlalchemy_pool_timeout=5\n']])[0]
    self.conf(['--config-file', path])
    self.assertEqual(self.conf.database.connection, 'fake_connection')
    self.assertEqual(self.conf.database.idle_timeout, 100)
    self.assertEqual(self.conf.database.min_pool_size, 99)
    self.assertEqual(self.conf.database.max_pool_size, 199)
    self.assertEqual(self.conf.database.max_retries, 22)
    self.assertEqual(self.conf.database.retry_interval, 17)
    self.assertEqual(self.conf.database.max_overflow, 101)
    self.assertEqual(self.conf.database.pool_timeout, 5)

dataset/ETHPy150Open openstack/oslo.db/oslo_db/tests/sqlalchemy/test_options.py DbApiOptionsTestCase.test_dbapi_database_deprecated_parameters/original