(self, expectation, freeze=None, explain=True)
| 205 | return self._wait_until_realized(expectation, freeze, explain, observe) |
| 206 | |
| 207 | def wait_for(self, expectation, freeze=None, explain=True): |
| 208 | assert expectation.has_lower_bound, ( |
| 209 | "Expectation must have a lower time bound to be used with wait_for()! " |
| 210 | "Use >> to sequence an expectation against an occurrence to establish a lower bound, " |
| 211 | "or wait_for_next() to wait for the next expectation since the timeline was last " |
| 212 | "frozen, or wait_until_realized() when a lower bound is really not necessary." |
| 213 | ) |
| 214 | if explain: |
| 215 | log.info("Waiting for {0!r}", expectation) |
| 216 | return self._wait_until_realized(expectation, freeze, explain=explain) |
| 217 | |
| 218 | def wait_for_next(self, expectation, freeze=True, explain=True, observe=True): |
| 219 | if explain: |
no test coverage detected