Пример #1
0
 def setUp(self):
     self.trans=dict()
     self.trans['ym'],self.trans['yb'] = sf.translation(-1,10,1,500)
     self.trans['tm'],self.trans['tb'] = sf.translation(-1,10,1,500)
Пример #2
0
 def testTranslationGenerator(self):
     a,b = sf.translation(1,2,3,5)
     self.assertEqual(a*1+b,2)
     self.assertEqual(a*3+b,5)