websauna.tests.core.test_permissions module

Test view permission as functional tests.

websauna.tests.core.test_permissions.permission_app(request, paster_config)[source]

Custom WSGI app with permission test views enabled.

websauna.tests.core.test_permissions.test_autheticated_anonymous_not_allowed(web_server, dbsession, init, browser)[source]

Anonymous access is not allowed to the views protected by authenticate permission.

websauna.tests.core.test_permissions.test_logged_in_has_authenticated_permission(web_server, dbsession, browser, permission_app)[source]

Logged in users can access views behind authenticated permission.

websauna.tests.core.test_permissions.web_server(request, permission_app)[source]

Run a web server with custom permission test views enabled.