Changeset 3609 in products
- Timestamp:
- Oct 25, 2012 10:48:38 AM (11 years ago)
- Location:
- quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests/testForms.py
r3270 r3609 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 i += 1 91 92 open("/tmp/test.%s.error.%d.html" % (l["id"], i), 92 93 "w").write(l["tb_html"]) 93 94 94 95 def testImage(self): … … 102 103 103 104 content_type = self.publish( 104 105 '/plone' + img_url).getHeader('content-type') 105 106 self.assertTrue(content_type.startswith('image'), 106 "Wrong captcha image content type")107 "Wrong captcha image content type") 107 108 108 109 def testSubmitRightCaptcha(self): … … 224 225 test_class=FunctionalTestCase, globs=globals(), 225 226 optionflags=doctest.REPORT_ONLY_FIRST_FAILURE | 226 227 227 doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), 228 ])) 228 229 229 230 else: -
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests/testInstallation.py
r3160 r3609 26 26 for layer in LAYERS: 27 27 self.assert_(layer.split('/')[0] in self.skins.objectIds(), 28 '%s directory view not found in portal_skins ' \28 '%s directory view not found in portal_skins ' 29 29 'after installation' % layer) 30 30 self.assert_(layer in path, … … 63 63 for layer in LAYERS: 64 64 self.assertTrue( 65 not layer.split('/')[0] in self.skins.objectIds(), 66 '%s directory view found in portal_skins '\ 67 'after uninstallation' % layer) 68 self.assert_(not layer in path, 69 '%s layer found in %s skin after uninstallation' % (layer, 70 skin)) 65 not layer.split('/')[0] in self.skins.objectIds(), 66 '%s directory view found in portal_skins ' 67 'after uninstallation' % layer) 68 self.assert_(not layer in path, '%s layer found in %s skin ' 69 'after uninstallation' % (layer, skin)) 71 70 72 71 def testBrowserLayerUnregistration(self):
Note: See TracChangeset
for help on using the changeset viewer.