(self)
| 213 | assert "foo2" in c2.record_info |
| 214 | |
| 215 | def test_rec_unconnected(self): |
| 216 | # test production of a _ConnectionRecord with an |
| 217 | # initially unconnected state. |
| 218 | |
| 219 | dbapi = MockDBAPI() |
| 220 | p1 = pool.Pool(creator=lambda: dbapi.connect("foo.db")) |
| 221 | |
| 222 | r1 = pool._ConnectionRecord(p1, connect=False) |
| 223 | |
| 224 | assert not r1.dbapi_connection |
| 225 | c1 = r1.get_connection() |
| 226 | is_(c1, r1.dbapi_connection) |
| 227 | is_(c1, r1.driver_connection) |
| 228 | |
| 229 | def test_rec_close_reopen(self): |
| 230 | # test that _ConnectionRecord.close() allows |
nothing calls this directly
no test coverage detected