示例#1
0
 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 testConvertSipReverse(self):
     """Test that we can convert a SipForwardTransform to a PolynomialTransform.
     """
     sipReverse = makeRandomSipReverseTransform(4)
     converted = PolynomialTransform.convert(sipReverse)
     self.assertTransformsAlmostEqual(sipReverse, converted)
示例#3
0
 def testConvertScaledPolynomial(self):
     """Test that we can convert a ScaledPolynomialTransform to a PolynomialTransform.
     """
     scaled = makeRandomScaledPolynomialTransform(4)
     converted = PolynomialTransform.convert(scaled)
     self.assertTransformsAlmostEqual(scaled, 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)