(self)
| 432 | eq_(canary.mock_calls, [call({"y": "adapted 5", "x": "adapted 4"})]) |
| 433 | |
| 434 | def test_partial_kw_accept(self): |
| 435 | TargetOne = self._fixture() |
| 436 | |
| 437 | canary = Mock() |
| 438 | |
| 439 | @event.listens_for(TargetOne, "event_five", named=True) |
| 440 | def handler1(z, y, **kw): |
| 441 | canary(z, y, kw) |
| 442 | |
| 443 | TargetOne().dispatch.event_five(4, 5, 6, 7) |
| 444 | |
| 445 | eq_(canary.mock_calls, [call(6, 5, {"x": 4, "q": 7})]) |
| 446 | |
| 447 | def test_partial_kw_accept_wrapped(self): |
| 448 | TargetOne = self._wrapped_fixture() |
nothing calls this directly
no test coverage detected