Changeset 3609 in products


Ignore:
Timestamp:
Oct 25, 2012 10:48:38 AM (11 years ago)
Author:
vmaksymiv
Message:

PPP fixes

Location:
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests/testForms.py

    r3270 r3609  
    7171        # Publish form and get response 
    7272        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) 
    7475        return response 
    7576 
     
    9091                i += 1 
    9192                open("/tmp/test.%s.error.%d.html" % (l["id"], i), 
    92                                                      "w").write(l["tb_html"]) 
     93                     "w").write(l["tb_html"]) 
    9394 
    9495    def testImage(self): 
     
    102103 
    103104        content_type = self.publish( 
    104                             '/plone' + img_url).getHeader('content-type') 
     105            '/plone' + img_url).getHeader('content-type') 
    105106        self.assertTrue(content_type.startswith('image'), 
    106             "Wrong captcha image content type") 
     107                        "Wrong captcha image content type") 
    107108 
    108109    def testSubmitRightCaptcha(self): 
     
    224225                test_class=FunctionalTestCase, globs=globals(), 
    225226                optionflags=doctest.REPORT_ONLY_FIRST_FAILURE | 
    226                     doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), 
    227             ])) 
     227                doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), 
     228        ])) 
    228229 
    229230    else: 
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/tests/testInstallation.py

    r3160 r3609  
    2626            for layer in LAYERS: 
    2727                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 ' 
    2929                             'after installation' % layer) 
    3030                self.assert_(layer in path, 
     
    6363            for layer in LAYERS: 
    6464                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)) 
    7170 
    7271    def testBrowserLayerUnregistration(self): 
Note: See TracChangeset for help on using the changeset viewer.