Example #1
0
File: base.py Project: a25kk/stv2
 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()
Example #2
0
 def setUp(cls):
     '''Sets up the CA by loading etc/site.zcml.'''
     five.safe_load_site()