(self)
| 543 | return p, canary |
| 544 | |
| 545 | def test_close(self): |
| 546 | p, canary = self._close_event_fixture() |
| 547 | |
| 548 | c1 = p.connect() |
| 549 | |
| 550 | connection = c1.dbapi_connection |
| 551 | rec = c1._connection_record |
| 552 | |
| 553 | c1.close() |
| 554 | |
| 555 | eq_(canary.mock_calls, []) |
| 556 | |
| 557 | p.dispose() |
| 558 | eq_(canary.mock_calls, [call(connection, rec)]) |
| 559 | |
| 560 | def test_detach(self): |
| 561 | p, canary = self._detach_event_fixture() |