'BaseForm._html_output() should merge all the hidden input fields and
put them in the last row ended with the specific row ender.'

def test_field_name_with_hidden_input_and_non_matching_row_ender(self):

    class SomeForm(Form, ):
        hidden1 = CharField(widget=HiddenInput)
        custom = CharField()
        hidden2 = CharField(widget=HiddenInput)
        def as_p(self):
            return self._html_output(normal_row='<p%(html_class_attr)s>%(field)s    %(field_name)s</p>', error_row='%s', row_ender='<hr    /><hr    />', help_text_html='    %s', errors_on_separate_row=True)
    form = SomeForm()
    self.assertHTMLEqual(form.as_p(), '<p><input    id="id_custom"    name="custom"    type="text"    required    />    custom</p>\n<input    id="id_hidden1"    name="hidden1"    type="hidden"    /><input    id="id_hidden2"    name="hidden2"    type="hidden"    /><hr    /><hr    />')
