def METHOD_NAME(self, numtype: Type[float], value: float, expected: float, raises: nullcontext):
    func = num(numtype)
    assert func.__name__ == numtype.__name__
    with raises:
        result = func(value)
        assert type(result) is numtype
        assert result == expected