#NEWLINE# def test_attached_when_policy_attached( self ) : #NEWLINE# #INDENT# '\n        Tests attached on a policy that is attached.\n        ' #NEWLINE# self . conn . list_principal_policies . return_value = { #NEWLINE# #INDENT# 'policies' : [ policy_ret ] , #NEWLINE# #UNINDENT# } #NEWLINE# result = salt_states [ 'boto_iot.policy_attached' ] ( 'test' , policy_ret [ 'policyName' ] , principal ) #NEWLINE# self . assertTrue ( result [ 'result' ] ) #NEWLINE# self . assertEqual ( result [ 'changes' ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )