'Testing creating several LibraryInformationTemplate form definitions'

def test_005_create_library_templates(self):

    for type in ['AddressField', 'CheckboxField', 'SelectField', 'TextArea', 'TextField', 'WorkflowField']:
        field_name = type.lower()
        form_desc = ('%s    description' % type)
        num_options = 0
        if (type == 'SelectField'):
            num_options = 2
        strings_displayed_after_submit = [("The    form    '%s'    has    been    updated    with    the    changes." % type)]
        self.create_form(name=type, description=form_desc, form_type=galaxy.model.FormDefinition.types.LIBRARY_INFO_TEMPLATE, field_type=type, num_options=num_options, field_name=field_name, strings_displayed_after_submit=strings_displayed_after_submit)
    global AddressField_form
    AddressField_form = get_form('AddressField')
    global address_field_name
    address_field_name = 'addressfield'
    global CheckboxField_form
    CheckboxField_form = get_form('CheckboxField')
    global checkbox_field_name
    checkbox_field_name = 'checkboxfield'
    global SelectField_form
    SelectField_form = get_form('SelectField')
    global select_field_name
    select_field_name = 'selectfield'
    global TextArea_form
    TextArea_form = get_form('TextArea')
    global textarea_name
    textarea_name = 'textarea'
    global TextField_form
    TextField_form = get_form('TextField')
    global textfield_name
    textfield_name = 'textfield'
    global WorkflowField_form
    WorkflowField_form = get_form('WorkflowField')
    global workflow_field_name
    workflow_field_name = 'workflowfield'
