Changeset 3608 in products for quintagroup.plonetabs/trunk/quintagroup/plonetabs/tests/test_erase.py
- Timestamp:
- Oct 25, 2012 10:46:03 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonetabs/trunk/quintagroup/plonetabs/tests/test_erase.py
r3563 r3608 9 9 try: 10 10 # Plone < 4.3 11 from zope.app.component import hooks 11 from zope.app.component import hooks 12 12 setSite = hooks.setSite 13 13 setHooks = hooks.setHooks 14 14 except ImportError: 15 # Plone >= 4.3 15 # Plone >= 4.3 16 16 from zope.component.hooks import setSite, setHooks 17 17 … … 61 61 tool = getToolByName(self.portal, 'portal_actionicons') 62 62 icon_ids = [i._action_id for i in tool.listActionIcons()] 63 self.failIf('plonetabs' in icon_ids, 64 'There should be no plonetabsaction icon after uninstall.')63 self.failIf('plonetabs' in icon_ids, 'There should be no plonetabs ' 64 'action icon after uninstall.') 65 65 66 66 def test_controlPanel(self): 67 67 tool = getToolByName(self.portal, 'portal_controlpanel') 68 68 action_ids = [a.id for a in tool.listActions()] 69 self.failIf('plonetabs' in action_ids, 70 'There should be no plonetabsconfiglet after after uninstall.')69 self.failIf('plonetabs' in action_ids, 'There should be no plonetabs ' 70 'configlet after after uninstall.') 71 71 72 72 def test_cssRegistry(self): … … 74 74 css = tool.getResource('++resource++plonetabs.css') 75 75 self.failUnless(css is None, 76 'There should be no ++resource++plonetabs.css stylesheets after'77 'uninstall.')76 'There should be no ++resource++plonetabs.css ' 77 'stylesheets after uninstall.') 78 78 79 79 def test_jsRegistry(self): … … 82 82 effects = tool.getResource('++resource++pt_effects.js') 83 83 self.failUnless(effects is None, 84 'There should be no ++resource++pt_effects.js script after'85 'uninstall.')84 'There should be no ++resource++pt_effects.js script ' 85 'after uninstall.') 86 86 87 87 dad = tool.getResource('++resource++sa_dragdrop.js') 88 88 self.failUnless(dad is None, 89 'There should be no ++resource++sa_dragdrop.js script after'90 'uninstall.')89 'There should be no ++resource++sa_dragdrop.js script ' 90 'after uninstall.') 91 91 92 92 def test_kssRegistry(self): … … 94 94 kss = tool.getResource('++resource++plonetabs.kss') 95 95 self.failUnless(kss is None, 96 'There should be no ++resource++plonetabs.kss sheets after'97 'uninstall.')96 'There should be no ++resource++plonetabs.kss sheets ' 97 'after uninstall.') 98 98 kss = tool.getResource('++resource++plonetabsmode.kss') 99 99 self.failUnless(kss is None, 100 'There should be no ++resource++plonetabsmode.kss sheets after'101 'uninstall.')100 'There should be no ++resource++plonetabsmode.kss ' 101 'sheets after uninstall.') 102 102 103 103 def test_propertiesTool(self): 104 104 tool = getToolByName(self.portal, 'portal_properties') 105 105 self.failUnless(hasattr(tool, 'tabs_properties'), 106 'There is no tabs_properties sheet in portal properties tool'107 'after uninstall.')106 'There is no tabs_properties sheet in portal ' 107 'properties tool after uninstall.') 108 108 titles = tool.tabs_properties.getProperty('titles', None) 109 109 self.assertEquals(titles, 110 ('portal_tabs|Portal Tabs Configuration',111 'portal_footer|Portal Footer Configuration'),112 'titles plonetabs property was erased from portal_properties'113 'after uninstall.'114 )110 ('portal_tabs|Portal Tabs Configuration', 111 'portal_footer|Portal Footer Configuration'), 112 'titles plonetabs property was erased from ' 113 'portal_properties after uninstall.' 114 ) 115 115 116 116 def test_browserLayer(self): 117 117 layers = [o.__name__ for o in registered_layers()] 118 118 self.failIf('IPloneTabsProductLayer' in layers, 119 'There should be no quintagroup.plonetabs layer after uninstall.') 119 'There should be no quintagroup.plonetabs layer after' 120 ' uninstall.') 120 121 121 122
Note: See TracChangeset
for help on using the changeset viewer.