def test_per_form_format(request):
    class CaptchaTestFormatForm(forms.Form):
        captcha = CaptchaField(
            help_text="asdasd",
            error_messages=dict(invalid="TEST CUSTOM ERROR MESSAGE"),
            output_format=(
                "%(image)s testPerFieldCustomFormatString "
                "%(hidden_field)s %(text_field)s"
            ),
        )

    return _test(request, CaptchaTestFormatForm)