Changeset 3610 in products
- Timestamp:
- Oct 25, 2012 10:51:20 AM (12 years ago)
- 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 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 -
quintagroup.plonecaptchas/branches/plone3/quintagroup/plonecaptchas/tests/testInstallation.py
r3162 r3610 19 19 for layer in LAYERS: 20 20 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 ' 22 22 'after installation' % layer) 23 23 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)) 25 25 26 26 def testSkinUninstall(self): … … 34 34 for layer in LAYERS: 35 35 self.assertTrue( 36 37 '%s directory view found in portal_skins '\38 36 not layer.split('/')[0] in self.skins.objectIds(), 37 '%s directory view found in portal_skins ' 38 'after uninstallation' % layer) 39 39 self.assert_(not layer in path, 40 '%s layer found in %s skin ' \40 '%s layer found in %s skin ' 41 41 'after uninstallation' % (layer, skin)) 42 42
Note: See TracChangeset
for help on using the changeset viewer.