def METHOD_NAME(self):
    def simpleFail(x):
        return np.sin(x), -sp.diags(np.cos(x))
    with pytest.raises(AssertionError):
        check_derivative(simpleFail, np.random.randn(5), plotIt=False)