def test_present_has_target(self):
        name = 'saltdude'
        target = 'dude@saltstack.com'
        ret = {'comment': 'Alias {0} already present'.format(name),
               'changes': {},
               'name': name,
               'result': True}

        has_target = MagicMock(return_value=True)
        with patch.dict(alias.__salt__, {'aliases.has_target': has_target}):
            self.assertEqual(alias.present(name, target), ret)
Fetches the updated data for the row based on the object id
dataset/ETHPy150Open saltstack/salt/tests/unit/states/alias_test.py/AliasTest.test_present_has_target--crossover with--dataset/ETHPy150Open CiscoSystems/avos/horizon/tables/base.py/Row.get_data