def assertRaises(callableObj=None, *args):
    context = _AssertRaisesContext()
    if callableObj is None:
        return context
    with context:
        callableObj(*args)
Fail unless an exception is raised by callableObj when invoked
dataset/ETHPy150Open alexmojaki/funcfinder/funcfinder/utils.py/assertRaises