def testConnectPool(self): p = connect_pool(0,1,database='hello') c = p.getconn() self.doTestConnection(c) p.putconn(c)
def testConnectPoolURL(self): p = connect_pool(0,1,url='postgres://localhost/hello') c = p.getconn() self.doTestConnection(c) p.putconn(c)
def setUp(self): self.pool = connect_pool(0,1,database='hello') self.db = DB(pool=self.pool)