def METHOD_NAME(
    self, num_state_qubits, slope, offset, domain, image, rescaling_factor, breakpoints
):
    """Test the polynomial rotation."""
    reference = partial(
        self.evaluate_function,
        num_qubits=num_state_qubits,
        slope=slope,
        offset=offset,
        domain=domain,
        image=image,
        rescaling_factor=rescaling_factor,
        breakpoints=breakpoints,
    )
    linear_f = LinearAmplitudeFunction(
        num_state_qubits, slope, offset, domain, image, rescaling_factor, breakpoints
    )
    self.assertFunctionIsCorrect(linear_f, reference)