Wait until the result is identical to the given value
(
self,
right: _R,
timeout: float = REACTPY_TESTING_DEFAULT_TIMEOUT.current,
delay: float = _DEFAULT_POLL_DELAY,
)
| 70 | raise asyncio.TimeoutError(msg) |
| 71 | |
| 72 | async def until_is( |
| 73 | self, |
| 74 | right: _R, |
| 75 | timeout: float = REACTPY_TESTING_DEFAULT_TIMEOUT.current, |
| 76 | delay: float = _DEFAULT_POLL_DELAY, |
| 77 | ) -> None: |
| 78 | """Wait until the result is identical to the given value""" |
| 79 | return await self.until( |
| 80 | lambda left: left is right, |
| 81 | timeout, |
| 82 | delay, |
| 83 | f"value to be identical to {right!r}", |
| 84 | ) |
| 85 | |
| 86 | async def until_equals( |
| 87 | self, |