From: Ross P. <svn...@pl...> - 2008-05-27 16:30:35
|
Author: rossp Date: Tue May 27 16:30:23 2008 New Revision: 65762 Modified: collective.exportimport/trunk/collective/exportimport/migration/testing.py Log: * Use the PTC addProfile() method Modified: collective.exportimport/trunk/collective/exportimport/migration/testing.py ============================================================================== --- collective.exportimport/trunk/collective/exportimport/migration/testing.py (original) +++ collective.exportimport/trunk/collective/exportimport/migration/testing.py Tue May 27 16:30:23 2008 @@ -15,12 +15,8 @@ class MigrationLayer(ptc.BasePTCLayer): def afterSetUp(self): - portal_setup = cmf_utils.getToolByName( - self.portal, 'portal_setup') - portal_setup.runImportStepFromProfile( - profile_id= - 'profile-collective.exportimport.migration:default', - step_id='collective.exportimport.migration') + self.addProfile( + 'collective.exportimport.migration:default') fiveconfigure.debug_mode = True zcml.load_config('testing.zcml', package=migration) |