(self)
| 570 | eq_(canary.mock_calls, [call(connection, rec)]) |
| 571 | |
| 572 | def test_detach_close(self): |
| 573 | p, canary = self._close_detached_event_fixture() |
| 574 | |
| 575 | c1 = p.connect() |
| 576 | |
| 577 | connection = c1.dbapi_connection |
| 578 | |
| 579 | c1.detach() |
| 580 | |
| 581 | c1.close() |
| 582 | eq_(canary.mock_calls, [call(connection)]) |
| 583 | |
| 584 | def test_first_connect_event(self): |
| 585 | p, canary = self._first_connect_event_fixture() |