def test_attribute_unit(self): """ the attribtue "input" can be set """ e = UnitValue(7.1, 0.01) self.assertEqual(e.unit, 0.01) e.unit = 0.1 self.assertEqual(e.unit, 0.1)
def test_attribute_input(self): """ the attribtue "input" can be set """ e = UnitValue(7.1, 0.01) self.assertEqual(e.input, 7.1) e.input = 4 self.assertEqual(e.input, 4)