Ignore:
Timestamp:
Apr 20, 2011 4:02:03 PM (14 years ago)
Author:
zidane
Message:

fixes pyflakes and pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testInstallation.py

    r3152 r3163  
    1 from base import * 
     1from quintagroup.plonegooglesitemaps.config import SUPPORT_BLAYER 
     2from quintagroup.plonegooglesitemaps.tests.base import TestCase, \ 
     3    PRODUCT, IGoogleSitemapsLayer 
     4import unittest 
     5 
    26from zope.component import getSiteManager 
    37from archetypes.schemaextender.interfaces import ISchemaExtender 
     
    7175        cols = ["canonical_link", "Language", "gsm_access", 
    7276                "gsm_genres", "gsm_stock"] 
    73         lsm = getSiteManager(self.portal) 
     77        getSiteManager(self.portal) 
    7478        catalog = self.portal.portal_catalog 
    7579        setuptools = self.portal.portal_setup 
     
    152156 
    153157def test_suite(): 
    154     from unittest import TestSuite, makeSuite 
    155     suite = TestSuite() 
    156     suite.addTest(makeSuite(TestGoogleSitemapsInstallation)) 
    157     suite.addTest(makeSuite(TestGoogleSitemapsUninstallation)) 
     158    suite = unittest.TestSuite() 
     159    suite.addTest(unittest.makeSuite(TestGoogleSitemapsInstallation)) 
     160    suite.addTest(unittest.makeSuite(TestGoogleSitemapsUninstallation)) 
    158161    return suite 
    159162 
Note: See TracChangeset for help on using the changeset viewer.