def test_absent_rm_alias_failed(self):
        name = 'saltdude'
        target = 'dude@saltstack.com'
        ret = {'comment': 'Failed to remove alias {0}'.format(name),
               'changes': {},
               'name': name,
               'result': False}

        get_target = MagicMock(return_value=True)
        rm_alias = MagicMock(return_value=False)
        with patch.dict(alias.__salt__, {'aliases.get_target': get_target}):
            with patch.dict(alias.__opts__, {'test': False}):
                with patch.dict(alias.__salt__, {'aliases.rm_alias': rm_alias}):
                    self.assertEqual(alias.absent(name), ret)
See ``BeautifulSoup::find``.
dataset/ETHPy150Open saltstack/salt/tests/unit/states/alias_test.py/AliasTest.test_absent_rm_alias_failed--crossover with--dataset/ETHPy150Open jmcarp/robobrowser/robobrowser/browser.py/RoboBrowser.find