Can compare two containers even with extra calling and awaiting.
( # noqa: WPS602
first,
second,
*,
deps=None,
backend: str = 'asyncio',
)
| 42 | |
| 43 | @staticmethod # noqa: WPS602 |
| 44 | def assert_equal( # noqa: WPS602 |
| 45 | first, |
| 46 | second, |
| 47 | *, |
| 48 | deps=None, |
| 49 | backend: str = 'asyncio', |
| 50 | ) -> None: |
| 51 | """Can compare two containers even with extra calling and awaiting.""" |
| 52 | from returns.primitives.asserts import assert_equal # noqa: PLC0415 |
| 53 | |
| 54 | assert_equal(first, second, deps=deps, backend=backend) |
| 55 | |
| 56 | def is_error_handled(self, container) -> bool: |
| 57 | """Ensures that container has its error handled in the end.""" |