(self, up_to=None, inclusive=False)
| 876 | return it |
| 877 | |
| 878 | def and_preceding(self, up_to=None, inclusive=False): |
| 879 | assert self.timeline is not None |
| 880 | assert up_to is None or isinstance(up_to, Expectation) |
| 881 | |
| 882 | if isinstance(up_to, Occurrence) and self < up_to: |
| 883 | return |
| 884 | |
| 885 | occ = self |
| 886 | while occ != up_to: |
| 887 | yield occ |
| 888 | occ = occ.previous |
| 889 | |
| 890 | if inclusive: |
| 891 | yield occ |
| 892 | |
| 893 | def following(self): |
| 894 | it = self.and_following() |
no outgoing calls
no test coverage detected