(lhs_val: Any, rhs_val: Any, assert_msg: str)
Check if an object is contained within another via ``lhs_val in rhs_val``. Raises ``TestFailure`` if not.

    Args:
        lhs_val: The value on the left side of ``in``
        rhs_val: The value on the right side of ``in``
        assert_msg: The assertion message from the ``assert`` statement

    Returns: None
    Raises: TestFailure
Check if an object is contained within another via ``lhs_val in rhs_val``. Raises ``TestFailure`` if not.
Check if an object is contained within another via lhs_val in rhs_val . Raises TestFailure if not .
def assert_in(lhs_val: Any, rhs_val: Any, assert_msg: str) -> None:
    """
    Check if an object is contained within another via ``lhs_val in rhs_val``. Raises ``TestFailure`` if not.

    Args:
        lhs_val: The value on the left side of ``in``
        rhs_val: The value on the right side of ``in``
        assert_msg: The assertion message from the ``assert`` statement

    Returns: None
    Raises: TestFailure
    """
    if lhs_val not in rhs_val:
        error_line_no = _prev_frame().f_lineno
        raise TestAssertionFailure(
            f"{lhs_val} is not in {rhs_val}",
            lhs=lhs_val,
            rhs=rhs_val,
            error_line=error_line_no,
            operator=Comparison.In,
            assert_msg=assert_msg,
        )
def assert_in ( lhs_val : Any , rhs_val : Any , assert_msg : str ) -> None : if lhs_val not in rhs_val : error_line_no = _prev_frame ( ) . f_lineno raise TestAssertionFailure ( f"{lhs_val} is not in {rhs_val}" , lhs = lhs_val , rhs = rhs_val , error_line = error_line_no , operator = Comparison . In , assert_msg = assert_msg , )