def assert_()

in pythonflow/operations.py [0:0]


def assert_(condition, message=None, *args, value=None):
    """
    Return `value` if the `condition` is satisfied and raise an `AssertionError` with the specified
    `message` and `args` if not.
    """
    if message:
        assert condition, message % args
    else:
        assert condition

    return value