def testConvertSipReverse(self): """Test that we can convert a SipForwardTransform to a PolynomialTransform. """ sipReverse = makeRandomSipReverseTransform(4) converted = PolynomialTransform.convert(sipReverse) self.assertTransformsAlmostEqual(sipReverse, converted)
def testConvertScaledPolynomial(self): """Test that we can convert a ScaledPolynomialTransform to a PolynomialTransform. """ scaled = makeRandomScaledPolynomialTransform(4) converted = PolynomialTransform.convert(scaled) self.assertTransformsAlmostEqual(scaled, converted)