portal_web.tests.unit.views.forms package

Submodules

portal_web.tests.unit.views.forms.test_base module

Form Controller Tests

class portal_web.tests.unit.views.forms.test_base.DeformFormMockNonValidating[source]

Bases: object

formid = 'deform'
render()[source]
validate(data)[source]
class portal_web.tests.unit.views.forms.test_base.DeformFormMockValidating[source]

Bases: object

formid = 'my_form_id'
render(appstruct={})[source]
validate(data)[source]
class portal_web.tests.unit.views.forms.test_base.FormControllerMock(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

class portal_web.tests.unit.views.forms.test_base.TestFormController[source]

Bases: object

FormController test class

test_clean()[source]

Test clean

test_data()[source]

Test data

test_formcontroller_controller()[source]

Test the FormController class

test_formcontroller_getstate()[source]

Test the FormController class

test_formcontroller_setstate()[source]

Test the FormController class

test_process()[source]

Test process forms

test_redirect_ressource_class()[source]

Test redirect resource class

test_redirect_ressource_instance()[source]

Test redirect resource instance

test_redirect_str()[source]

Test redirect str

test_render()[source]

Test render

test_submitted_false()[source]

Test submitted false

test_submitted_false_nodata()[source]

Test submitted false nodata

test_submitted_true()[source]

Test submitted true

test_submitted_true_button()[source]

Test submitted true button

test_validate()[source]

Test validation success

test_validate_not()[source]

Test validation failure

Module contents