class YourPloneFixture(PloneSandboxLayer):
    defaultBases = PLONE_FIXTURE,

def setUpZope(self, app, configurationContext):
    z2.installProduct(app, 'Products.PythonScripts')

def setUpPloneSite(self, portal):
    self.applyProfile(portal, 'Products.CMFPlone:plone')
self.applyProfile(portal, 'Products.CMFPlone:plone-content')
How to add Members folder in plone.app.testing?