def METHOD_NAME(peak_profile):
    x = numpy.arange(5000)
    peak_params = _PEAK_PARAMETERS[peak_profile]
    func = getattr(functions, peak_profile)
    with pytest.raises(IndexError):
        func(x)
    with pytest.raises(IndexError):
        func(x, *peak_params, 0)
    y = func(x, *peak_params)
    assert x.shape == y.shape