def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)
 def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)