Ignore:
Timestamp:
Jun 16, 2010 3:26:04 PM (14 years ago)
Author:
mylan
Message:

#216: Fixed #5 issue, added test (from http://plone.org/products/plone-comments/issues/5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testStatic.py

    r1984 r2542  
    4545        self.assertTrue(index >= 1 and index <= CAPTCHAS_COUNT) 
    4646        # encrypted key must be equals to title of the image 
    47         key = getWord( index-1 )  
     47        key = getWord( index-1 ) 
    4848        img = getattr(self.portal, '%s.jpg' % index) 
    4949        self.assertTrue(encrypt1(key) == img.title) 
     
    6262        self.assertTrue(obj_html == img_html, "Image get by getCaptchaImage script " \ 
    6363            "is differ from image get by index (after parsing decrypted key)") 
    64  
     64         
    6565 
    6666class TestStaticValidator(ptc.PloneTestCase): 
Note: See TracChangeset for help on using the changeset viewer.