Ignore:
Timestamp:
Apr 21, 2011 1:43:09 PM (13 years ago)
Author:
vmaksymiv
Message:

pep8, pyflakes fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testMigration.py

    r2737 r3168  
    1 from base import * 
    2 from Products.PloneTestCase.setup import cleanupPloneSite 
    3 from Products.PloneTestCase.setup import portal_name 
    4 from Products.PloneTestCase.setup import SiteCleanup 
     1import unittest 
     2from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled 
     3 
    54 
    65class TestMigration(TestCaseNotInstalled): 
     
    3231 
    3332    def beforeTearDown(self): 
    34         self.qi.uninstallProducts(["quintagroup.pfg.captcha",]) 
     33        self.qi.uninstallProducts(["quintagroup.pfg.captcha", ]) 
    3534 
    3635    def prepareToMigration(self): 
     
    4241        test_form.invokeFactory("CaptchaField", 'test_captcha_field') 
    4342        self.cf_path = "test_form/key" 
    44         self.old_cf = self.portal.unrestrictedTraverse(self.cf_path)  
     43        self.old_cf = self.portal.unrestrictedTraverse(self.cf_path) 
    4544        self.assert_(self.old_cf) 
    46         self.pt['CaptchaField'].manage_changeProperties(product="qPloneCaptchaField") 
     45        self.pt['CaptchaField'].manage_changeProperties( 
     46            product="qPloneCaptchaField") 
    4747        self.qi.manage_delObjects('quintagroup.pfg.captcha') 
    4848 
    4949    def testMigration(self): 
    5050        self.addProduct("quintagroup.pfg.captcha") 
    51         new_cf = self.portal.unrestrictedTraverse(self.cf_path)  
     51        new_cf = self.portal.unrestrictedTraverse(self.cf_path) 
    5252        self.assert_(self.old_cf != new_cf) 
    5353 
Note: See TracChangeset for help on using the changeset viewer.