def fail(msg=''):
    if len(msg) == 0:
        raise AssertionError('Fail!')
    else:
        raise AssertionError('Fail: %s!' % msg)
Force test failure with the given message.
dataset/ETHPy150Open ActivisionGameScience/assertpy/assertpy/assertpy.py/fail