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