def test_check_numeric_exception(value, exception_type): with pytest.raises(exception_type): check_numeric(value)
def test_check_numeric(actual, expected): assert check_numeric(actual) == expected