def METHOD_NAME(self, func_name):
    # empty array should not be accepted
    func = getattr(num, func_name)
    msg = r"an empty sequence"
    with pytest.raises(ValueError, match=msg):
        func([])