#NEWLINE# def test_present_when_bucket_exists_no_mods( self ) : #NEWLINE# #INDENT# self . conn . list_buckets . return_value = deepcopy ( list_ret ) #NEWLINE# for ( key , value ) in config_ret . iteritems ( ) : #NEWLINE# #INDENT# getattr ( self . conn , key ) . return_value = deepcopy ( value ) #NEWLINE# #UNINDENT# with patch . dict ( funcs , { #NEWLINE# #INDENT# 'boto_iam.get_account_id' : MagicMock ( return_value = '111111222222' ) , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# result = salt_states [ 'boto_s3_bucket.present' ] ( 'bucket present' , Bucket = 'testbucket' , ** config_in ) #NEWLINE# #UNINDENT# self . assertTrue ( value [ 'result' ] ) #NEWLINE# self . assertEqual ( result [ 'changes' ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )