Changeset 3402 in products for quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_erase.py
- Timestamp:
- Apr 2, 2012 1:04:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_erase.py
r3395 r3402 15 15 16 16 from quintagroup.plonetabs.tests.base import PloneTabsTestCase 17 17 18 18 19 class TestErase(PloneTabsTestCase): … … 39 40 product_name = 'quintagroup.plonetabs' 40 41 if tool.isProductInstalled(product_name): 41 tool.uninstallProducts([product_name, ])42 tool.uninstallProducts([product_name, ]) 42 43 43 44 # drop elevated perms … … 49 50 def afterSetUp(self): 50 51 self.loginAsPortalOwner() 51 52 52 53 def test_actionIcons(self): 53 54 tool = getToolByName(self.portal, 'portal_actionicons') … … 55 56 self.failIf('plonetabs' in icon_ids, 56 57 'There should be no plonetabs action icon after uninstall.') 57 58 58 59 def test_controlPanel(self): 59 60 tool = getToolByName(self.portal, 'portal_controlpanel') … … 61 62 self.failIf('plonetabs' in action_ids, 62 63 'There should be no plonetabs configlet after after uninstall.') 63 64 64 65 def test_cssRegistry(self): 65 66 tool = getToolByName(self.portal, 'portal_css') … … 68 69 'There should be no ++resource++plonetabs.css stylesheets after' 69 70 ' uninstall.') 70 71 71 72 def test_jsRegistry(self): 72 73 tool = getToolByName(self.portal, 'portal_javascripts') 73 74 74 75 effects = tool.getResource('++resource++pt_effects.js') 75 76 self.failUnless(effects is None, 76 77 'There should be no ++resource++pt_effects.js script after' 77 78 ' uninstall.') 78 79 79 80 dad = tool.getResource('++resource++sa_dragdrop.js') 80 81 self.failUnless(dad is None, … … 92 93 'There should be no ++resource++plonetabsmode.kss sheets after' 93 94 ' uninstall.') 94 95 95 96 def test_propertiesTool(self): 96 97 tool = getToolByName(self.portal, 'portal_properties') … … 105 106 ' after uninstall.' 106 107 ) 107 108 108 109 def test_browserLayer(self): 109 110 sm = getSiteManager(self.portal) … … 112 113 'There should be no quintagroup.plonetabs layer after uninstall.') 113 114 115 114 116 def test_suite(): 115 117 suite = unittest.TestSuite()
Note: See TracChangeset
for help on using the changeset viewer.