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

fixes pyflakes and pylint

File:
1 edited

Legend:

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

    r3152 r3163  
    44 
    55import logging 
    6 from base import * 
    7 from zope.component import getSiteManager 
     6 
     7from quintagroup.plonegooglesitemaps.tests.base import TestCase 
     8import unittest 
     9 
    810from StringIO import StringIO 
    911 
    1012from Products.CMFPlone.utils import _createObjectByType 
    1113from Products.GenericSetup.upgrade import _upgrade_registry 
    12 from archetypes.schemaextender.interfaces import ISchemaExtender 
    1314from quintagroup.plonegooglesitemaps import config 
    1415from quintagroup.plonegooglesitemaps import upgrades as gsm_upgrades 
     
    194195 
    195196def test_suite(): 
    196     from unittest import TestSuite, makeSuite 
    197     suite = TestSuite() 
    198     suite.addTest(makeSuite(TestUpgrade)) 
     197    suite = unittest.TestSuite() 
     198    suite.addTest(unittest.makeSuite(TestUpgrade)) 
    199199    if PRESENT_OLD_PRODUCT: 
    200         suite.addTest(makeSuite(TestMigrationFromProduct)) 
     200        suite.addTest(unittest.makeSuite(TestMigrationFromProduct)) 
    201201 
    202202    return suite 
Note: See TracChangeset for help on using the changeset viewer.