The horizon.test.tests.forms ModuleΒΆ

class horizon.test.tests.forms.ChoiceFieldTests(methodName='runTest')[source]

Bases: horizon.test.helpers.TestCase

setUp()[source]
template = 'horizon/common/_form_fields.html'
test_choicefield_title()[source]
class horizon.test.tests.forms.FormErrorTests(methodName='runTest')[source]

Bases: horizon.test.helpers.TestCase

setUp()[source]
template = 'horizon/common/_form_fields.html'
test_api_error()[source]
test_set_warning()[source]
class horizon.test.tests.forms.FormMixinTests(methodName='runTest')[source]

Bases: horizon.test.helpers.TestCase

test_modal_form_mixin_add_to_field_header_not_set()[source]
test_modal_form_mixin_add_to_field_header_set()[source]
test_modal_form_mixin_hide_true_if_ajax()[source]
test_template_name_change_based_on_ajax_request()[source]
class horizon.test.tests.forms.TestChoiceFieldForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fad67be9a90>), ('test_choices', <django.forms.fields.ChoiceField object at 0x7fad67be9b10>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fad67be9a90>), ('test_choices', <django.forms.fields.ChoiceField object at 0x7fad67be9b10>)])
handle(request, data)[source]
media
title_dic = {'label1': {'title': 'This is choice 1'}, 'label2': {'title': 'This is choice 2'}, 'label3': {'title': 'This is choice 3'}}
class horizon.test.tests.forms.TestForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fad67be9d50>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fad67be9d50>)])
handle(request, data)[source]
media

Previous topic

The horizon.test.tests.tables Module

Next topic

The horizon.test.tests.tabs Module

This Page