def testNormalCase(self): self.assertEqual(_linear(0.0, 1.0, 0.0, 2.0), (2.0, 0.0))
def testEqualInRanges(self): #self.assertRaises(ValueError, linear, 1.0, 1.0, 2.0, 3.0) self.assertEqual(_linear(1.0, 1.0, 2.0, 3.0), (0, 2.5))
def testEqualOutRanges(self): self.assertEqual(_linear(2.0, 3.0, 1.0, 1.0), (0.0, 1.0))