def testObjectCleanup(self): for i in range(100): ec = QEasingCurve() ec.setCustomType(myFunction) self.assertEqual(ec.valueForProgress(1.0), 100.0) self.assertEqual(ec.valueForProgress(0.5), -100.0)
def testCustomType(self): ec = QEasingCurve() ec.setCustomType(myFunction) self.assertEqual(ec.valueForProgress(1.0), 100.0) self.assertEqual(ec.valueForProgress(0.5), -100.0)