def METHOD_NAME(self) -> None:
    """Test when P is constant and not symmetric.
    """
    P = np.array([[2, 2], [3, 4]])
    x = cp.Variable(2)
    with self.assertRaises(Exception) as cm:
        cp.quad_form(x, P)
    self.assertTrue("Quadratic form matrices must be symmetric/Hermitian."
                    in str(cm.exception))