def setUp(self): config.read() administration.create_tables(config.Database.test_name) self.connection = psycopg2.connect( "dbname=%s user=%s password=%s" % (config.Database.test_name, config.Database.user, config.Database.password))
def test_test_connection(self): """Check open/close connection to the test database.""" config.read() conn = connection.TestConnection() conn.close()