@patch('salt.modules.aliases.get_target', MagicMock(return_value=''))
    def test_rm_alias_absent(self):
        ret = aliases.rm_alias('foo')
        self.assertTrue(ret)
Tests return when alias is not present
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/aliases_test.py/AliasesTestCase.test_rm_alias_absent