summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2009-07-10 21:48:45 +0000
committerJason Kirtland <jek@discorporate.us>2009-07-10 21:48:45 +0000
commitca4744c1cb0fcd9888a45f50ecbc5b4549f3a637 (patch)
tree96c50a6024815cedf48859cd0d0d14415a9781d3 /test/engine/test_pool.py
parent910961fccdf9fe6933c56c595c1126df132a31ff (diff)
downloadsqlalchemy-ca4744c1cb0fcd9888a45f50ecbc5b4549f3a637.tar.gz
Implemented recreate() for StaticPool
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r--test/engine/test_pool.py12
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