(self, first, last)
| 642 | OPERATOR = "|" |
| 643 | |
| 644 | def test(self, first, last): |
| 645 | assert isinstance(first, Occurrence) |
| 646 | assert isinstance(last, Occurrence) |
| 647 | |
| 648 | for exp in self.expectations: |
| 649 | for reasons in exp.test(first, last): |
| 650 | yield reasons |
| 651 | |
| 652 | def __or__(self, other): |
| 653 | assert isinstance(other, Expectation) |