def METHOD_NAME(self):
    """
    Test the validate() method for params.
    Initialization must have the correct number of params required for the style (possibly
    none).
    """
    self.tr = OCIO.FixedFunctionTransform(
        style=self.TEST_STYLE,
        direction=self.TEST_DIRECTION)
    self.assertIsNone(self.tr.validate())
    self.tr.setParams(self.TEST_PARAMS)
    with self.assertRaises(OCIO.Exception):
        self.tr.validate()
    self.tr.setStyle(OCIO.FIXED_FUNCTION_REC2100_SURROUND)
    self.tr.setParams([0.78])
    self.assertIsNone(self.tr.validate())
    self.tr.setStyle(OCIO.FIXED_FUNCTION_ACES_GAMUT_COMP_13)
    self.tr.setParams([1.147, 1.264, 1.312, 0.815, 0.803, 0.880, 1.2])
    self.assertIsNone(self.tr.validate())
    # Invalid parameter count
    self.tr.setStyle(OCIO.FIXED_FUNCTION_ACES_GAMUT_COMP_13)
    self.tr.setParams([1.0])
    with self.assertRaises(OCIO.Exception):
        self.assertIsNone(self.tr.validate())
    # Invalid parameter range
    self.tr.setStyle(OCIO.FIXED_FUNCTION_ACES_GAMUT_COMP_13)
    self.tr.setParams([1.147, 1.264, 1.312, 0.815, 0.803, 0.880, 0.5])
    with self.assertRaises(OCIO.Exception):
        self.assertIsNone(self.tr.validate())