#NEWLINE# def test_instance_groups_missing_instance_type_error( self ) : #NEWLINE# #INDENT# cmd = 'emr create-cluster --use-default-roles --ami-version 3.0.4 --auto-terminate --instance-groups Name=Master,InstanceGroupType=MASTER,InstanceCount=1' #NEWLINE# expect_error_msg = '\nThe following required parameters are missing for structure:: InstanceType\n' #NEWLINE# stderr = self . run_cmd ( cmd , 255 ) [ 1 ] #NEWLINE# self . assert_error_message_has_field_name ( stderr , 'InstanceType' )