def METHOD_NAME(self) -> None:
    """Test quad form with a parameter.
    """
    P = cp.Parameter((2, 2), PSD=True)
    Q = np.eye(2)
    x = cp.Variable(2)
    cost = cp.quad_form(x, P)
    P.value = Q
    prob = cp.Problem(cp.Minimize(cost), [x == [1, 2]])
    with warnings.catch_warnings():
        warnings.simplefilter('ignore')
        self.assertAlmostEqual(prob.solve(solver=cp.SCS), 5)