Part of lp.testing View In Hierarchy
Known subclasses: lp.app.browser.tests.test_formatters.ObjectFormatterAPITestCase, lp.app.browser.tests.test_page_macro.TestPageMacroDispatcherMixin, lp.app.tests.test_services.TestServiceFactory, lp.registry.browser.tests.test_commercialsubscription.PersonVouchersViewTestCase, lp.scripts.tests.test_garbo.TestGarbo
These helper methods simplify the task to registering Zope adapters during the setup of a test and they will be unregistered when the test completes.
Method | registerAdapter | Register an adapter from the required interfacs to the provided. |
Method | registerAuthorizationAdapter | Register a security checker to test authorisation. |
Method | registerBrowserViewAdapter | Register a security checker to test authorization. |
Method | getAdapter | Undocumented |
Method | registerUtility | Undocumented |
Register an adapter from the required interfacs to the provided.
Register a security checker to test authorisation.