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

PPP fixes

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.