def METHOD_NAME(self):
    """
    Test the setNegativeStyle() and getNegativeStyle() methods.
    """
    # Default initialized negative style is clamp.
    self.assertEqual(self.tr.getNegativeStyle(), OCIO.NEGATIVE_CLAMP)
    # Linear negative extrapolation is not valid for basic exponent style.
    for negative_style in OCIO.NegativeStyle.__members__.values():
        if negative_style != OCIO.NEGATIVE_LINEAR:
            self.tr.setNegativeStyle(negative_style)
            self.assertEqual(
                self.tr.getNegativeStyle(), negative_style)
        else:
            with self.assertRaises(OCIO.Exception):
                self.tr.setNegativeStyle(negative_style)