Ignore:
Timestamp:
Oct 24, 2012 3:05:59 PM (12 years ago)
Author:
vmaksymiv
Message:

PPP fixes

File:
1 edited

Legend:

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

    r3144 r3600  
    4444    def testPILImageFont(self): 
    4545        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.") 
    4949 
    5050 
     
    8787 
    8888        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) 
    9394 
    9495 
Note: See TracChangeset for help on using the changeset viewer.