def setUp(cls): safe_load_site() portal = cls.getPortal() setup_tool = portal.portal_setup setup_tool.setImportContext('profile-membrane:default') setup_tool.runAllImportSteps() setup_tool.setImportContext('profile-membrane:test') setup_tool.runAllImportSteps() mbtool = getattr(portal, TOOLNAME) mbtool.registerMembraneType(dummy.TestMember.portal_type) mbtool.registerMembraneType(dummy.AlternativeTestMember.portal_type) mbtool.registerMembraneType(dummy.TestGroup.portal_type) txn.commit()
def setUp(cls): '''Sets up the CA by loading etc/site.zcml.''' five.safe_load_site()