Changeset 3600 in products for quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testDynamic.py
- Timestamp:
- Oct 24, 2012 3:05:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testDynamic.py
r3144 r3600 44 44 def testPILImageFont(self): 45 45 if not DYNAMIC_WORKABLE: 46 self.fail("You can not use Dynamic Captchas, only Static one " \47 "unless install PIL with _imagingft C module into python, " \48 "that is used for the current Zope instance.")46 self.fail("You can not use Dynamic Captchas, only Static one " 47 "unless install PIL with _imagingft C module into " 48 "python, that is used for the current Zope instance.") 49 49 50 50 … … 87 87 88 88 img_ctype = img_html.getHeader('content-type') 89 self.assertTrue(img_ctype == 'image/jpeg', "Wrong content type for " \ 90 "generated image: %s, must be 'image/jpeg'" % img_ctype) 91 self.assertTrue(img_html.status == 200, "Wrong response status: " \ 92 "'%s', must be '200'" % img_html.status) 89 self.assertTrue(img_ctype == 'image/jpeg', 90 "Wrong content type for generated image: %s, " 91 "must be 'image/jpeg'" % img_ctype) 92 self.assertTrue(img_html.status == 200, "Wrong response status: " 93 "'%s', must be '200'" % img_html.status) 93 94 94 95
Note: See TracChangeset
for help on using the changeset viewer.