#NEWLINE# def test_absent_already_gone( self ) : #NEWLINE# #INDENT# '\n        test alias.absent already gone\n        ' #NEWLINE# name = 'saltdude' #NEWLINE# target = 'dude@saltstack.com' #NEWLINE# ret = { #NEWLINE# #INDENT# 'comment' : 'Alias {0} already absent' . format ( name ) , #NEWLINE# 'changes' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'name' : name , #NEWLINE# 'result' : True , #NEWLINE# #UNINDENT# } #NEWLINE# get_target = MagicMock ( return_value = False ) #NEWLINE# with patch . dict ( alias . __salt__ , { #NEWLINE# #INDENT# 'aliases.get_target' : get_target , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# self . assertEqual ( alias . absent ( name ) , ret )