#NEWLINE# def test_ec2_attributes_no_az( self ) : #NEWLINE# #INDENT# cmd = ( ( 'emr create-cluster --ami-version 3.0.4 --instance-groups ' + DEFAULT_INSTANCE_GROUPS_ARG ) + ' --ec2-attributes KeyName=testkey,SubnetId=subnet-123456,InstanceProfile=EMR_EC2_DefaultRole --service-role EMR_DefaultRole' ) #NEWLINE# result = copy . deepcopy ( DEFAULT_RESULT ) #NEWLINE# result [ 'Instances' ] [ 'Ec2KeyName' ] = 'testkey' #NEWLINE# result [ 'Instances' ] [ 'Ec2SubnetId' ] = 'subnet-123456' #NEWLINE# result [ 'JobFlowRole' ] = 'EMR_EC2_DefaultRole' #NEWLINE# self . assert_params_for_cmd ( cmd , self )