#NEWLINE# @ mock . patch ( 'rally.api.Task.validate' ) #NEWLINE# def test__load_and_validate_file( self , mock_task_validate ) : #NEWLINE# #INDENT# deployment = 'some_deployment_uuid' #NEWLINE# self . assertRaises ( IOError , self . task . _load_and_validate_task , 'some_task' , 'task_args' , 'task_args_file' , self )