def test_determine_parameter_unit_nok(self): not_a_parameter = 'This is a string' unit = determine_parameter_unit(not_a_parameter) self.assertTrue(unit is None)
def test_determine_parameter_unit_ok(self): dummy_parameter = ManualParameter('dummy') unit = determine_parameter_unit(dummy_parameter) self.assertTrue(unit == '')