def test_subtract_exception(minuend, subtrahend): with pytest.raises(TypeError): _.subtract(minuend, subtrahend)
def test_subtract(minuend, subtrahend, expected): assert _.subtract(minuend, subtrahend) == expected