Changeset 2991 in products


Ignore:
Timestamp:
Nov 8, 2010 2:49:28 PM (15 years ago)
Author:
mylan
Message:

#228: Fixed ran of tearing down testing layers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/base.py

    r2990 r2991  
    7373 
    7474    def afterSetUp(self): 
    75         super(MixinTestCase, self).afterSetUp() 
    7675        self.loginAsPortalOwner() 
    7776        self.workflow = self.portal.portal_workflow 
     
    8584 
    8685    def beforeTearDown(self): 
    87         super(MixinTestCase, self).beforeTearDown() 
    8886        if getattr(self, 'orig_mobile_ifaces', None) is not None: 
    8987            mobilesitemapview.MOBILE_INTERFACES = self.orig_mobile_ifaces 
     
    9290class TestCase(MixinTestCase, ptc.PloneTestCase): 
    9391    """ For unit tests """ 
     92     
     93    def afterSetUp(self): 
     94        MixinTestCase.afterSetUp(self) 
     95        ptc.PloneTestCase.afterSetUp(self) 
     96 
     97    def beforeTearDown(self): 
     98        MixinTestCase.beforeTearDown(self) 
     99        ptc.PloneTestCase.beforeTearDown(self) 
     100 
    94101 
    95102 
     
    98105 
    99106    def afterSetUp(self): 
    100         super(FunctionalTestCase, self).afterSetUp() 
     107        MixinTestCase.afterSetUp(self) 
     108        ptc.FunctionalTestCase.afterSetUp(self) 
    101109        self.auth = "%s:%s" % (portal_owner, default_password) 
    102110 
     111    def beforeTearDown(self): 
     112        MixinTestCase.beforeTearDown(self) 
     113        ptc.FunctionalTestCase.beforeTearDown(self) 
     114 
Note: See TracChangeset for help on using the changeset viewer.