def test_power_illegal_arg2(): x = AutoDiff(2, "x") with pytest.raises(AttributeError): assert ef.pwer("thirty", x)
def test_power_illegal_arg3(): x = AutoDiff(-1, "x") with pytest.raises(AttributeError): assert ef.pwer(x, 2)
def test_power_illegal_arg2(): with pytest.raises(AttributeError): assert ef.pwer(2, "thirty")