Changeset 3610 in products


Ignore:
Timestamp:
Oct 25, 2012 10:51:20 AM (11 years ago)
Author:
vmaksymiv
Message:

PPP fixes

Location:
quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests/testForms.py

    r3162 r3610  
    7171        # Publish form and get response 
    7272        response = self.publish(form_url, self.basic_auth, 
    73             request_method=self.form_method, stdin=stdin_data) 
     73                                request_method=self.form_method, 
     74                                stdin=stdin_data) 
    7475        return response 
    7576 
     
    9091 
    9192        content_type = self.publish('/plone' + img_url).getHeader( 
    92                                                             'content-type') 
     93            'content-type') 
    9394        self.assertTrue(content_type.startswith('image'), 
    94             "Wrong captcha image content type") 
     95                        "Wrong captcha image content type") 
    9596 
    9697    def testSubmitRightCaptcha(self): 
    97         key = getWord(int(parseKey(decrypt( 
    98                 self.captcha_key, self.hashkey))['key']) - 1) 
     98        key = getWord(int(parseKey(decrypt(self.captcha_key, 
     99                                          self.hashkey))['key']) - 1) 
    99100        self.form_data['key'] = key 
    100101 
     
    108109 
    109110    def testSubmitRightCaptchaTwice(self): 
    110         key = getWord(int(parseKey(decrypt( 
    111                 self.captcha_key, self.hashkey))['key']) - 1) 
     111        key = getWord(int(parseKey(decrypt(self.captcha_key, 
     112                                          self.hashkey))['key']) - 1) 
    112113        self.form_data['key'] = key 
    113114 
  • quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests/testInstallation.py

    r3162 r3610  
    1919            for layer in LAYERS: 
    2020                self.assert_(layer.split('/')[0] in self.skins.objectIds(), 
    21                              '%s directory view not found in portal_skins '\ 
     21                             '%s directory view not found in portal_skins ' 
    2222                             'after installation' % layer) 
    2323                self.assert_(layer in path, 
    24                     '%s layer not found in %s' % (PRODUCT_NAME, skin)) 
     24                             '%s layer not found in %s' % (PRODUCT_NAME, skin)) 
    2525 
    2626    def testSkinUninstall(self): 
     
    3434            for layer in LAYERS: 
    3535                self.assertTrue( 
    36                         not layer.split('/')[0] in self.skins.objectIds(), 
    37                                 '%s directory view found in portal_skins '\ 
    38                                 'after uninstallation' % layer) 
     36                    not layer.split('/')[0] in self.skins.objectIds(), 
     37                    '%s directory view found in portal_skins ' 
     38                    'after uninstallation' % layer) 
    3939                self.assert_(not layer in path, 
    40                              '%s layer found in %s skin '\ 
     40                             '%s layer found in %s skin ' 
    4141                             'after uninstallation' % (layer, skin)) 
    4242 
Note: See TracChangeset for help on using the changeset viewer.