#NEWLINE# def test_custom_jar_step_with_all_fields( self ) : #NEWLINE# #INDENT# cmd = ( ( DEFAULT_CMD + '--steps ' ) + 'Name=Custom,Type=Custom_JAR,Jar=s3://mybucket/mytest.jar,Args=arg1,arg2,MainClass=mymainclass,ActionOnFailure=TERMINATE_CLUSTER' ) #NEWLINE# expected_steps = [ { #NEWLINE# #INDENT# 'Name' : 'Custom' , #NEWLINE# 'ActionOnFailure' : 'TERMINATE_CLUSTER' , #NEWLINE# 'HadoopJarStep' : { #NEWLINE# #INDENT# 'Jar' : 's3://mybucket/mytest.jar' , #NEWLINE# 'Args' : [ 'arg1' , 'arg2' ] , #NEWLINE# 'MainClass' : 'mymainclass' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# result = copy . deepcopy ( DEFAULT_RESULT ) #NEWLINE# result [ 'Steps' ] = expected_steps #NEWLINE# self . assert_params_for_cmd ( cmd , result )