Changeset 3126 in products for quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsUninstall.py
- Timestamp:
- Apr 18, 2011 10:06:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsUninstall.py
r3112 r3126 26 26 27 27 def test_skins_uninstall(self): 28 skinstool =getToolByName(self.portal, 'portal_skins')28 skinstool = getToolByName(self.portal, 'portal_skins') 29 29 self.failIf(PRODUCT_SKIN_NAME in skinstool.objectIds(), 30 30 'There is still %s folder in portal_skins.' % PRODUCT_SKIN_NAME) … … 38 38 from plone.browserlayer.utils import registered_layers 39 39 from quintagroup.plonecomments.interfaces import IPloneCommentsLayer 40 self.failIf(IPloneCommentsLayer in registered_layers(), 41 ' %s layerfound after uninstallation.' % IPloneCommentsLayer.getName())40 self.failIf(IPloneCommentsLayer in registered_layers(), '%s layer ' 41 'found after uninstallation.' % IPloneCommentsLayer.getName()) 42 42 43 43 def test_configlet_uninstall(self): 44 44 configTool = getToolByName(self.portal, 'portal_controlpanel', None) 45 self.failIf(CONFIGLET_ID in [a.getId() for a in configTool.listActions()], 45 self.failIf(CONFIGLET_ID in [a.getId() 46 for a in configTool.listActions()], 46 47 'Configlet %s found after uninstallation.' % CONFIGLET_ID) 47 48 … … 49 50 portal_properties = getToolByName(self.portal, 'portal_properties') 50 51 self.failUnless(PROPERTY_SHEET in portal_properties.objectIds(), 51 '%s property_sheet not found in portal_properties after uninstallation.' % PROPERTY_SHEET) 52 '%s property_sheet not found in portal_properties after ' 53 'uninstallation.' % PROPERTY_SHEET) 54 52 55 53 56 def test_suite():
Note: See TracChangeset
for help on using the changeset viewer.