#NEWLINE# def test_present_when_policy_exists( self ) : #NEWLINE# #INDENT# self . conn . get_policy . return_value = policy_ret #NEWLINE# self . conn . create_policy_version . return_value = policy_ret #NEWLINE# result = salt_states [ 'boto_iot.policy_present' ] ( 'policy present' , policyName = policy_ret [ 'policyName' ] , policyDocument = policy_ret [ 'policyDocument' ] ) #NEWLINE# self . assertTrue ( result [ 'result' ] ) #NEWLINE# self . assertEqual ( result [ 'changes' ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )