#NEWLINE# def test_cluster_with_service_role_and_instance_profile( self ) : #NEWLINE# #INDENT# cmd = ( 'emr create-cluster --ami-version 3.0.4 --service-role ServiceRole --ec2-attributes InstanceProfile=Ec2_InstanceProfile --instance-groups ' + DEFAULT_INSTANCE_GROUPS_ARG ) #NEWLINE# result = copy . deepcopy ( DEFAULT_RESULT ) #NEWLINE# result [ 'JobFlowRole' ] = 'Ec2_InstanceProfile' #NEWLINE# result [ 'ServiceRole' ] = 'ServiceRole' #NEWLINE# self . assert_params_for_cmd ( cmd , result )