| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 20 | def test_adapter(test_objects): |
||
| 21 | # subscribe adapter to broadcaster |
||
| 22 | test_objects.broadcaster.subject.attach(test_objects.adapter) |
||
| 23 | |||
| 24 | # select a loop function (from test implementations) |
||
| 25 | |||
| 26 | # iterate |
||
| 27 | iterations = test_objects.broadcaster.iterate() |
||
| 28 | |||
| 29 | # assert iterations completed are the expected nb of oiterations |
||
| 30 | assert iterations == 4 |
||
| 31 |