def test_failstub():
    failstub = StubCallable(throw=NotImplementedError('foo'))
    try:
        failstub('sanity')
        assert False
    except __HOLE__:
        pass
    assert 1 == len(failstub.calls)
    assert "(('sanity',), {})" == str(failstub.calls[0])
dataset/ETHPy150Open probcomp/bayeslite/tests/test_loggers.py/test_failstub