def test_with_human(self):
        field = Field('/fake', 'fake', {0: 'Off', 1: 'On'})
        field._convert_to_human = MagicMock(return_value='On')
        ret = field._build_get_return(self.INT_RETURN_VALUE)
        self.assertTrue('raw' in ret)
        self.assertTrue('human' in ret)
        self.assertEqual(ret['human'], 'On')
dataset/ETHPy150Open mhrivnak/radiotherm/tests/field/test_build_get_return.py/TestBuildGetReturn.test_with_human/original