def test_linear_weight(self): """linear_weight weights linearly""" max_d = 1.0 d = 0.90 obs = linear_weight(d,max_d) exp = 0.10 self.assertFloatEqual(obs, exp) d = 0.0 obs = linear_weight(d,max_d) exp = 1.0 self.assertFloatEqual(obs, exp) max_d = 3.0 d = 1.5 obs = linear_weight(d,max_d) exp = 0.50 self.assertFloatEqual(obs, exp)