diff options
| author | Jason Kirtland <jek@discorporate.us> | 2009-07-10 21:48:45 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2009-07-10 21:48:45 +0000 |
| commit | ca4744c1cb0fcd9888a45f50ecbc5b4549f3a637 (patch) | |
| tree | 96c50a6024815cedf48859cd0d0d14415a9781d3 /test/engine/test_pool.py | |
| parent | 910961fccdf9fe6933c56c595c1126df132a31ff (diff) | |
| download | sqlalchemy-ca4744c1cb0fcd9888a45f50ecbc5b4549f3a637.tar.gz | |
Implemented recreate() for StaticPool
Diffstat (limited to 'test/engine/test_pool.py')
| -rw-r--r-- | test/engine/test_pool.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 43a0fc38b..d135ad337 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -659,6 +659,12 @@ class NullPoolTest(PoolTestBase): c1 = p.connect() assert c1.connection.id != c_id - - - + + +class StaticPoolTest(PoolTestBase): + def test_recreate(self): + dbapi = MockDBAPI() + creator = lambda: dbapi.connect('foo.db') + p = pool.StaticPool(creator) + p2 = p.recreate() + assert p._creator is p2._creator |
