def test_1000(self): val = soft.within(self.vals[4], self.lower, self.upper, scale=0.001) self.assertAlmostEqual(val, 0)
def test_25(self): val = soft.within(self.vals[2], self.lower, self.upper, scale=0.001) self.assertEqual(val, 1)