| Conditions | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | import asyncio |
||
| 17 | def test_on_future_errors(): |
||
| 18 | manager = LoaferManager(routes=[], consumers=[]) |
||
| 19 | manager.runner = mock.Mock() |
||
| 20 | future = asyncio.Future() |
||
| 21 | future.set_exception(ProviderError) |
||
| 22 | manager.on_future__errors(future) |
||
| 23 | |||
| 24 | assert manager.runner.stop.called |
||
| 25 | assert manager.runner.stop.called_once_with() |
||
| 26 | |||
| 36 |