Ignore:
Timestamp:
Oct 25, 2012 10:46:03 AM (12 years ago)
Author:
vmaksymiv
Message:

PPP fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/trunk/quintagroup/plonetabs/tests/test_erase.py

    r3563 r3608  
    99try: 
    1010    # Plone < 4.3 
    11     from zope.app.component import hooks  
     11    from zope.app.component import hooks 
    1212    setSite = hooks.setSite 
    1313    setHooks = hooks.setHooks 
    1414except ImportError: 
    15     # Plone >= 4.3  
     15    # Plone >= 4.3 
    1616    from zope.component.hooks import setSite, setHooks 
    1717 
     
    6161        tool = getToolByName(self.portal, 'portal_actionicons') 
    6262        icon_ids = [i._action_id for i in tool.listActionIcons()] 
    63         self.failIf('plonetabs' in icon_ids, 
    64             'There should be no plonetabs action icon after uninstall.') 
     63        self.failIf('plonetabs' in icon_ids, 'There should be no plonetabs ' 
     64                    'action icon after uninstall.') 
    6565 
    6666    def test_controlPanel(self): 
    6767        tool = getToolByName(self.portal, 'portal_controlpanel') 
    6868        action_ids = [a.id for a in tool.listActions()] 
    69         self.failIf('plonetabs' in action_ids, 
    70             'There should be no plonetabs configlet after after uninstall.') 
     69        self.failIf('plonetabs' in action_ids, 'There should be no plonetabs ' 
     70                    'configlet after after uninstall.') 
    7171 
    7272    def test_cssRegistry(self): 
     
    7474        css = tool.getResource('++resource++plonetabs.css') 
    7575        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.') 
    7878 
    7979    def test_jsRegistry(self): 
     
    8282        effects = tool.getResource('++resource++pt_effects.js') 
    8383        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.') 
    8686 
    8787        dad = tool.getResource('++resource++sa_dragdrop.js') 
    8888        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.') 
    9191 
    9292    def test_kssRegistry(self): 
     
    9494        kss = tool.getResource('++resource++plonetabs.kss') 
    9595        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.') 
    9898        kss = tool.getResource('++resource++plonetabsmode.kss') 
    9999        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.') 
    102102 
    103103    def test_propertiesTool(self): 
    104104        tool = getToolByName(self.portal, 'portal_properties') 
    105105        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.') 
    108108        titles = tool.tabs_properties.getProperty('titles', None) 
    109109        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                          ) 
    115115 
    116116    def test_browserLayer(self): 
    117117        layers = [o.__name__ for o in registered_layers()] 
    118118        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.') 
    120121 
    121122 
Note: See TracChangeset for help on using the changeset viewer.