#NEWLINE# @ mock . patch . object ( workflows . WorkflowManager , 'validate' , mock . MagicMock ( return_value = { #NEWLINE# #INDENT# 'valid' : True , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# def test_unexpected_action_params_failure( self ) : #NEWLINE# #INDENT# def_yaml = self . _read_file_content ( WF_UNEXP_PARAM_PATH ) #NEWLINE# result = self . validator . validate ( def_yaml ) #NEWLINE# expected = [ { #NEWLINE# #INDENT# 'type' : 'action' , #NEWLINE# 'path' : None , #NEWLINE# 'message' : 'Unexpected parameters in "task1" for action "wolfpack.action-1": "foo"' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertListEqual ( def_yaml , result )