#NEWLINE# def test_absent_with_failure( self ) : #NEWLINE# #INDENT# self . conn . get_policy . return_value = policy_ret #NEWLINE# self . conn . list_policy_versions . return_value = { #NEWLINE# #INDENT# 'policyVersions' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . conn . delete_policy . side_effect = ClientError ( error_content , 'delete_policy' ) #NEWLINE# result = salt_states [ 'boto_iot.policy_absent' ] ( 'test' , policy_ret [ 'policyName' ] ) #NEWLINE# self . assertFalse ( self [ 'result' ] ) #NEWLINE# self . assertTrue ( ( 'An error occurred' in result [ 'comment' ] ) )