(self, first, last)
| 691 | OPERATOR = "^" |
| 692 | |
| 693 | def test(self, first, last): |
| 694 | assert isinstance(first, Occurrence) |
| 695 | assert isinstance(last, Occurrence) |
| 696 | |
| 697 | reasons = None |
| 698 | for exp in self.expectations: |
| 699 | for exp_reasons in exp.test(first, last): |
| 700 | if reasons is None: |
| 701 | reasons = exp_reasons |
| 702 | else: |
| 703 | return |
| 704 | |
| 705 | if reasons is not None: |
| 706 | yield reasons |
| 707 | |
| 708 | @property |
| 709 | def has_lower_bound(self): |