Example #1
0
 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))
Example #2
0
 def test_test_connection(self):
     """Check open/close connection to the test database."""
     config.read()
     conn = connection.TestConnection()
     conn.close()