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/testNewsSitemaps.py

    r3152 r3163  
    1 from base import * 
     1from quintagroup.plonegooglesitemaps.tests.base \ 
     2    import FunctionalTestCase, TestCase, IGoogleSitemapsLayer 
     3from quintagroup.plonegooglesitemaps.tests.XMLParser import parse 
     4from Products.PloneTestCase.setup import portal_owner, default_password 
     5from zope.interface import alsoProvides 
     6import unittest 
     7 
    28from DateTime import DateTime 
    39from Missing import MV 
     
    178184        self.assert_("n:keywords" not in self.start.keys()) 
    179185 
    180     def test_no_keywords(self): 
     186    def test_no_stock_tickers(self): 
    181187        self.assert_("n:stock_tickers" not in self.start.keys()) 
    182188 
     
    298304        for n, func in self.nsmv.additional_maps: 
    299305            try: 
    300                 v = func(self.brain) 
     306                func(self.brain) 
    301307            except Exception, e: 
    302308                self.fail("Wrong processing 'Missing' value for '%s': %s" \ 
     
    305311 
    306312def test_suite(): 
    307     from unittest import TestSuite, makeSuite 
    308     suite = TestSuite() 
    309     suite.addTest(makeSuite(TestNewsSitemapsXML)) 
    310     suite.addTest(makeSuite(TestNewsSitemapsXMLDefaultObject)) 
    311     suite.addTest(makeSuite(TestSchemaExtending)) 
    312     suite.addTest(makeSuite(TestNotOverrideExistingSchemaExtender)) 
    313     suite.addTest(makeSuite(TestAdditionalMaps)) 
     313    suite = unittest.TestSuite() 
     314    suite.addTest(unittest.makeSuite(TestNewsSitemapsXML)) 
     315    suite.addTest(unittest.makeSuite(TestNewsSitemapsXMLDefaultObject)) 
     316    suite.addTest(unittest.makeSuite(TestSchemaExtending)) 
     317    suite.addTest(unittest.makeSuite(TestNotOverrideExistingSchemaExtender)) 
     318    suite.addTest(unittest.makeSuite(TestAdditionalMaps)) 
    314319    return suite 
     320 
     321if __name__ == '__main__': 
     322    unittest.main(defaultTest='test_suite') 
     323#    framework() 
Note: See TracChangeset for help on using the changeset viewer.