(self, up_to=None, inclusive=False)
| 896 | return it |
| 897 | |
| 898 | def and_following(self, up_to=None, inclusive=False): |
| 899 | assert self.timeline is not None |
| 900 | assert up_to is None or isinstance(up_to, Expectation) |
| 901 | if up_to is None: |
| 902 | self.timeline.expect_frozen() |
| 903 | |
| 904 | if isinstance(up_to, Occurrence) and up_to < self: |
| 905 | return |
| 906 | |
| 907 | occ = self |
| 908 | while occ != up_to: |
| 909 | yield occ |
| 910 | occ = occ.next |
| 911 | |
| 912 | if inclusive: |
| 913 | yield occ |
| 914 | |
| 915 | def precedes(self, occurrence): |
| 916 | assert isinstance(occurrence, Occurrence) |
no test coverage detected