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

PPP fixes

File:
1 edited

Legend:

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

    r3437 r3608  
    1616        tool = getToolByName(self.portal, 'portal_actionicons') 
    1717        icon_ids = [i._action_id for i in tool.listActionIcons()] 
    18         self.failUnless('plonetabs' in icon_ids, 
    19             'There is no plonetabs action icon in actionicons tool.') 
     18        self.failUnless('plonetabs' in icon_ids, 'There is no plonetabs action' 
     19                        'icon in actionicons tool.') 
    2020 
    2121    def test_controlPanel(self): 
     
    2323        action_ids = [a.id for a in tool.listActions()] 
    2424        self.failUnless('plonetabs' in action_ids, 
    25             'There is no plonetabs action in control panel.') 
     25                        'There is no plonetabs action in control panel.') 
    2626 
    2727    def test_cssRegistry(self): 
    2828        tool = getToolByName(self.portal, 'portal_css') 
    2929        css = tool.getResource('++resource++plonetabs.css') 
    30         self.failIf(css is None, 
    31             'There is no ++resource++plonetabs.css stylesheets registered.') 
     30        self.failIf(css is None, 'There is no ++resource++plonetabs.css ' 
     31                    'stylesheets registered.') 
    3232 
    3333    def test_jsRegistry(self): 
     
    3636        prototype = tool.getResource('++resource++prototype.js') 
    3737        self.failIf(prototype is None, 
    38             'There is no ++resource++prototype.js script registered.') 
     38                    'There is no ++resource++prototype.js script registered.') 
    3939        self.failUnless(prototype._data['enabled'], 
    40             '++resource++prototype.js script is disabled.') 
     40                        '++resource++prototype.js script is disabled.') 
    4141 
    4242        effects = tool.getResource('++resource++pt_effects.js') 
    4343        self.failIf(effects is None, 
    44             'There is no ++resource++pt_effects.js script registered.') 
     44                    'There is no ++resource++pt_effects.js script registered.') 
    4545 
    4646        dad = tool.getResource('++resource++sa_dragdrop.js') 
    47         self.failIf(dad is None, 
    48             'There is no ++resource++sa_dragdrop.js script registered.') 
     47        self.failIf(dad is None, 'There is no ++resource++sa_dragdrop.js ' 
     48                    'script registered.') 
    4949 
    5050    def test_kssRegistry(self): 
     
    5252        kss = tool.getResource('++resource++plonetabs.kss') 
    5353        self.failIf(kss is None, 
    54             'There is no ++resource++plonetabs.kss sheets registered.') 
     54                    'There is no ++resource++plonetabs.kss sheets registered.') 
    5555        kss = tool.getResource('++resource++plonetabsmode.kss') 
    56         self.failIf(kss is None, 
    57             'There is no ++resource++plonetabsmode.kss sheets registered.') 
     56        self.failIf(kss is None, 'There is no ++resource++plonetabsmode.kss ' 
     57                    'sheets registered.') 
    5858 
    5959    def test_propertiesTool(self): 
    6060        tool = getToolByName(self.portal, 'portal_properties') 
    61         self.failUnless(hasattr(tool, 'tabs_properties'), 
    62             'There is no tabs_properties sheet in portal properties tool.') 
     61        self.failUnless(hasattr(tool, 'tabs_properties'), 'There is no ' 
     62                        'tabs_properties sheet in portal properties tool.') 
    6363        titles = tool.tabs_properties.getProperty('titles', None) 
    6464        self.assertEquals(titles, 
    65             ('portal_tabs|Portal Tabs Configuration', 
    66              'portal_footer|Portal Footer Configuration'), 
    67             'Site properties was not setup properly' 
    68         ) 
     65                          ('portal_tabs|Portal Tabs Configuration', 
     66                           'portal_footer|Portal Footer Configuration'), 
     67                          'Site properties was not setup properly' 
     68                          ) 
    6969 
    7070    def test_browserLayerRegistered(self): 
    7171        layers = [o.__name__ for o in registered_layers()] 
    72         self.failUnless('IPloneTabsProductLayer' in layers, 
    73             'There should be quintagroup.ploentabs browser layer registered.') 
     72        self.failUnless('IPloneTabsProductLayer' in layers, 'There should be ' 
     73                        'quintagroup.ploentabs browser layer registered.') 
    7474 
    7575 
Note: See TracChangeset for help on using the changeset viewer.