Ignore:
Timestamp:
Apr 20, 2012 10:04:56 AM (9 years ago)
Author:
potar
Message:

Merged tests branch

Location:
quintagroup.plonetabs/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/trunk

    • Property svn:mergeinfo
      •  

        old new  
        11/quintagroup.plonetabs/branches/plone4:3076-3243 
         2/quintagroup.plonetabs/branches/tests:3394-3436 
  • quintagroup.plonetabs/trunk/quintagroup/plonetabs/tests/test_setup.py

    r872 r3437  
    11import unittest 
    2  
    3 from zope.component import getSiteManager 
    42 
    53from plone.browserlayer.utils import registered_layers 
     
    97from quintagroup.plonetabs.tests.base import PloneTabsTestCase 
    108 
     9 
    1110class TestSetup(PloneTabsTestCase): 
    12      
     11 
    1312    def afterSetUp(self): 
    1413        self.loginAsPortalOwner() 
    15      
     14 
    1615    def test_actionIcons(self): 
    1716        tool = getToolByName(self.portal, 'portal_actionicons') 
     
    1918        self.failUnless('plonetabs' in icon_ids, 
    2019            'There is no plonetabs action icon in actionicons tool.') 
    21      
     20 
    2221    def test_controlPanel(self): 
    2322        tool = getToolByName(self.portal, 'portal_controlpanel') 
     
    2524        self.failUnless('plonetabs' in action_ids, 
    2625            'There is no plonetabs action in control panel.') 
    27      
     26 
    2827    def test_cssRegistry(self): 
    2928        tool = getToolByName(self.portal, 'portal_css') 
     
    3130        self.failIf(css is None, 
    3231            'There is no ++resource++plonetabs.css stylesheets registered.') 
    33      
     32 
    3433    def test_jsRegistry(self): 
    3534        tool = getToolByName(self.portal, 'portal_javascripts') 
    36          
     35 
    3736        prototype = tool.getResource('++resource++prototype.js') 
    3837        self.failIf(prototype is None, 
     
    4039        self.failUnless(prototype._data['enabled'], 
    4140            '++resource++prototype.js script is disabled.') 
    42          
     41 
    4342        effects = tool.getResource('++resource++pt_effects.js') 
    4443        self.failIf(effects is None, 
    4544            'There is no ++resource++pt_effects.js script registered.') 
    46          
     45 
    4746        dad = tool.getResource('++resource++sa_dragdrop.js') 
    4847        self.failIf(dad is None, 
     
    5756        self.failIf(kss is None, 
    5857            'There is no ++resource++plonetabsmode.kss sheets registered.') 
    59      
     58 
    6059    def test_propertiesTool(self): 
    6160        tool = getToolByName(self.portal, 'portal_properties') 
     
    6867            'Site properties was not setup properly' 
    6968        ) 
    70      
     69 
    7170    def test_browserLayerRegistered(self): 
    72         sm = getSiteManager(self.portal) 
    7371        layers = [o.__name__ for o in registered_layers()] 
    7472        self.failUnless('IPloneTabsProductLayer' in layers, 
    7573            'There should be quintagroup.ploentabs browser layer registered.') 
     74 
    7675 
    7776def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.