MCPcopy
hub / github.com/dry-python/returns / assert_equal

Method assert_equal

returns/contrib/pytest/plugin.py:44–54  ·  view source on GitHub ↗

Can compare two containers even with extra calling and awaiting.

(  # noqa: WPS602
        first,
        second,
        *,
        deps=None,
        backend: str = 'asyncio',
    )

Source from the content-addressed store, hash-verified

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."""

Callers 2

test_assert_equal_pluginFunction · 0.80

Calls 1

assert_equalFunction · 0.90

Tested by 2

test_assert_equal_pluginFunction · 0.64