self.assertEqual(self.fsPT.ZCacheable_getManagerId(), cache_id) self.fsPT.manage_doCustomize(folder_path='custom') custom_pt = self.custom.testPT self.assertEqual(custom_pt.ZCacheable_getManagerId(), cache_id) def test_dontExpandOnCreation( self ): self.fsPT.manage_doCustomize( folder_path='custom' ) customized = self.custom.testPT self.failIf( customized.expand ) def tearDown(self): SecurityTest.tearDown(self) FSPTMaker.tearDown(self) def test_suite(): return unittest.TestSuite(( unittest.makeSuite(FSPageTemplateTests), unittest.makeSuite(FSPageTemplateCustomizationTests), )) if __name__ == '__main__': from Products.CMFCore.testing import run run(test_suite())
def test_remove_skip_purge(self): from Products.CMFCore.exportimport.actions \ import importActionProviders site = self._initSite(2, 2) atool = site.portal_actions self.assertEqual(atool.listActionProviders(), ['portal_actions', 'portal_foo', 'portal_bar']) context = DummyImportContext(site, False) context._files['actions.xml'] = _REMOVE_IMPORT importActionProviders(context) self.assertEqual(atool.listActionProviders(), ['portal_foo']) def test_suite(): return unittest.TestSuite(( unittest.makeSuite(ActionNodeAdapterTests), unittest.makeSuite(ActionCategoryNodeAdapterTests), unittest.makeSuite(ActionsToolXMLAdapterTests), unittest.makeSuite(exportActionProvidersTests), unittest.makeSuite(importActionProvidersTests), )) if __name__ == '__main__': from Products.CMFCore.testing import run run(test_suite())