def test_deflate(self):
     st = SingleTransform([0, 0, 0, 0, 0, 0])
     p = reshape(matrix([1, 0, 0, 0, 0, 0], float), (-1, 1))
     st.inflate(p)
     result = st.deflate()
     self.assertAlmostEqual(numpy.linalg.norm(p - result), 0.0, 6)
 def test_deflate(self):
     st = SingleTransform([0, 0, 0, 0, 0, 0])
     p = reshape( matrix([1, 0, 0, 0, 0, 0], float), (-1,1) )
     st.inflate(p)
     result = st.deflate()
     self.assertAlmostEqual(numpy.linalg.norm(p-result), 0.0, 6)