Changeset 2542 in products for quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testStatic.py
- Timestamp:
- Jun 16, 2010 3:26:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testStatic.py
r1984 r2542 45 45 self.assertTrue(index >= 1 and index <= CAPTCHAS_COUNT) 46 46 # encrypted key must be equals to title of the image 47 key = getWord( index-1 ) 47 key = getWord( index-1 ) 48 48 img = getattr(self.portal, '%s.jpg' % index) 49 49 self.assertTrue(encrypt1(key) == img.title) … … 62 62 self.assertTrue(obj_html == img_html, "Image get by getCaptchaImage script " \ 63 63 "is differ from image get by index (after parsing decrypted key)") 64 64 65 65 66 66 class TestStaticValidator(ptc.PloneTestCase):
Note: See TracChangeset
for help on using the changeset viewer.