portal_web.tests.unit.views package

Subpackages

Submodules

portal_web.tests.unit.views.test_base module

View Base Tests

class portal_web.tests.unit.views.test_base.FormControllerMock(name='mock', persistent=False)[source]

Bases: object

FormController mock

process(request, context)[source]
class portal_web.tests.unit.views.test_base.FormControllerMockHTTPException(name='mock', persistent=False)[source]

Bases: object

FormController mock with exception

process(request, context)[source]
class portal_web.tests.unit.views.test_base.TestViewBase[source]

Bases: object

test_cleanup_form_deletion(pyramid)[source]

Test deletion

test_cleanup_form_dontdeleteforminflow(pyramid)[source]

Simulate active flow

test_cleanup_form_persistence(pyramid)[source]

Test persistence

test_process_form_exception(viewbase)[source]

Test proces form exception

test_process_form_processed(viewbase)[source]

Test process form processed

test_redirect_resource_class(viewbase)[source]

Test redirect resource class

test_redirect_resource_instance(pyramid, viewbase)[source]

Test redirect resource instance

test_redirect_str(viewbase)[source]

Test redirect str

test_registerform(viewbase)[source]

Test register form

test_registerform_staticpath(pyramid)[source]

Test registerform static path

test_viewbase(pyramid)[source]

Assemble a ViewBase

portal_web.tests.unit.views.test_base.viewbase(pyramid)[source]

Returns a dummy ViewBase instance to test the view base class.

Module contents