Changeset 3610 in products for quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests/testForms.py
- Timestamp:
- Oct 25, 2012 10:51:20 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests/testForms.py
r3162 r3610 71 71 # Publish form and get response 72 72 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) 74 75 return response 75 76 … … 90 91 91 92 content_type = self.publish('/plone' + img_url).getHeader( 92 93 'content-type') 93 94 self.assertTrue(content_type.startswith('image'), 94 "Wrong captcha image content type")95 "Wrong captcha image content type") 95 96 96 97 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) 99 100 self.form_data['key'] = key 100 101 … … 108 109 109 110 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) 112 113 self.form_data['key'] = key 113 114
Note: See TracChangeset
for help on using the changeset viewer.