def tearDown(cls): app = ZopeTestCase.app() plone = app.plone reg = BasePloneWickedRegistration(plone) reg.handle(unregister=True) txn.commit() ZopeTestCase.close(app)
def setUp(cls): app = ZopeTestCase.app() plone = app.plone reg = BasePloneWickedRegistration(plone) reg.handle() # install the product qi = plone.portal_quickinstaller qi.installProduct('wicked.atcontent') txn.commit() ZopeTestCase.close(app)