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