def METHOD_NAME(self):
    """
    Test validate() and setValue().
    """
    gct = OCIO.GradingRGBCurveTransform(OCIO.GRADING_LOG)
    gct.validate()
    # 3rd control point x is lower than 2nd control point x.
    vals = OCIO.GradingRGBCurve(OCIO.GRADING_LOG)
    vals.red = OCIO.GradingBSplineCurve([0, 0, 0.5, 0.2, 0.2, 0.5, 1, 1])
    with self.assertRaises(OCIO.Exception):
        gct.setValue(vals);