'Add information to a library using an existing template with 2 elements'

def folder_info(self, cntrller, folder_id, library_id, name='', new_name='', description='', template_refresh_field_name='1_field_name', template_refresh_field_contents='', template_fields=[], strings_displayed=[], strings_not_displayed=[], strings_displayed_after_submit=[], strings_not_displayed_after_submit=[]):

    self.visit_url(('%s/library_common/folder_info?cntrller=%s&id=%s&library_id=%s' % (self.url, cntrller, folder_id, library_id)))
    if (name and new_name and description):
        tc.fv('1', 'name', new_name)
        tc.fv('1', 'description', description)
        tc.submit('rename_folder_button')
    for check_str in strings_displayed:
        self.check_page_for_string(check_str)
    for check_str in strings_not_displayed:
        try:
            self.check_page_for_string(check_str)
            raise AssertionError(('String    (%s)    incorrectly    displayed.' % check_str))
        except:
            pass
    if template_refresh_field_contents:
        self.refresh_form(template_refresh_field_name, template_refresh_field_contents, form_no=2)
    if template_fields:
        for (field_name, field_value) in template_fields:
            tc.fv('edit_info', field_name, field_value)
        tc.submit('edit_info_button')
    for check_str in strings_displayed_after_submit:
        self.check_page_for_string(check_str)
    for check_str in strings_not_displayed_after_submit:
        try:
            self.check_page_for_string(check_str)
            raise AssertionError(('String    (%s)    incorrectly    displayed.' % check_str))
        except:
            pass
