(self)
| 545 | return p, canary |
| 546 | |
| 547 | def test_close(self): |
| 548 | p, canary = self._close_event_fixture() |
| 549 | |
| 550 | c1 = p.connect() |
| 551 | |
| 552 | connection = c1.dbapi_connection |
| 553 | rec = c1._connection_record |
| 554 | |
| 555 | c1.close() |
| 556 | |
| 557 | eq_(canary.mock_calls, []) |
| 558 | |
| 559 | p.dispose() |
| 560 | eq_(canary.mock_calls, [call(connection, rec)]) |
| 561 | |
| 562 | def test_detach(self): |
| 563 | p, canary = self._detach_event_fixture() |
nothing calls this directly
no test coverage detected