(self)
| 2341 | |
| 2342 | class StaticPoolTest(PoolTestBase): |
| 2343 | def test_recreate(self): |
| 2344 | dbapi = MockDBAPI() |
| 2345 | |
| 2346 | def creator(): |
| 2347 | return dbapi.connect("foo.db") |
| 2348 | |
| 2349 | p = pool.StaticPool(creator) |
| 2350 | p2 = p.recreate() |
| 2351 | assert p._creator is p2._creator |
| 2352 | |
| 2353 | def test_connect(self): |
| 2354 | dbapi = MockDBAPI() |