#NEWLINE# def test_that_when_deleting_a_function_succeeds_the_delete_function_method_returns_true( self ) : #NEWLINE# #INDENT# '\n        tests True function deleted.\n        ' #NEWLINE# with patch . dict ( boto_lambda . __salt__ , { #NEWLINE# #INDENT# 'boto_iam.get_account_id' : MagicMock ( return_value = '1234' ) , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# result = boto_lambda . delete_function ( FunctionName = 'testfunction' , Qualifier = 1 , ** conn_parameters ) #NEWLINE# #UNINDENT# self . assertTrue ( self [ 'deleted' ] )