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

    r3152 r3163  
    22# Tests related to general Sitemap type. 
    33# 
    4 from base import * 
     4from quintagroup.plonegooglesitemaps.tests.base \ 
     5    import FunctionalTestCase, TestCase, IMobileMarker 
     6from quintagroup.plonegooglesitemaps.config import ping_googlesitemap 
     7from StringIO import StringIO 
     8from urllib import urlencode 
     9import sys 
     10from XMLParser import hasURL 
     11import unittest 
     12 
    513from DateTime import DateTime 
    614from zope.interface import alsoProvides 
     
    8088        self.assertEqual("published" in wfstates.keys(), True) 
    8189 
    82     def testWorkflowStates(self): 
     90    def testWorkflowTransitions(self): 
    8391        wftrans = self.contentSM.getWorkflowTransitions() 
    8492        self.assertEqual(isinstance(wftrans, atapi.DisplayList), True) 
     
    239247        sys.stdout = myout 
    240248        try: 
    241             response = self.publish("%s?%s" % (formUrl, qs), basic=self.auth) 
     249            self.publish("%s?%s" % (formUrl, qs), basic=self.auth) 
    242250            myout.seek(0) 
    243251            data = myout.read() 
     
    299307 
    300308def test_suite(): 
    301     from unittest import TestSuite, makeSuite 
    302     suite = TestSuite() 
    303     suite.addTest(makeSuite(TestSitemapType)) 
    304     suite.addTest(makeSuite(TestSettings)) 
    305     suite.addTest(makeSuite(TestPinging)) 
    306     suite.addTest(makeSuite(TestContextSearch)) 
     309    suite = unittest.TestSuite() 
     310    suite.addTest(unittest.makeSuite(TestSitemapType)) 
     311    suite.addTest(unittest.makeSuite(TestSettings)) 
     312    suite.addTest(unittest.makeSuite(TestPinging)) 
     313    suite.addTest(unittest.makeSuite(TestContextSearch)) 
    307314    return suite 
    308315 
Note: See TracChangeset for help on using the changeset viewer.