Changeset 1219

Show
Ignore:
Timestamp:
08/29/08 12:02:17
Author:
liebster
Message:

Fixed tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneCaptchas/tags/1.3.2/Extensions/Install.py

    r1114 r1219  
    3737    mtool = getToolByName(self, 'portal_migration') 
    3838    plone_version = mtool.getFileSystemVersion() 
    39  
    4039    if plone_version.startswith('2.1'): 
    4140        plone_version = '2.1.2' 
     
    9594                out.write('  Layer %s was already installed into skin %s.\n' % (layer,skin)) 
    9695        if modified: 
    97             path = string.join( path, ', ' ) 
     96            path = string.join( path, ',' ) 
    9897            skinstool.addSkinSelection( skin, path ) 
    9998 
  • qPloneCaptchas/tags/1.3.2/tests/testCaptchaWidget.py

    r945 r1219  
    2121        self.addProduct('qPloneCaptchas') 
    2222        self.portal.invokeFactory('Document', 'index_html') 
    23         self.portal['index_html'].allow_discussion = True 
     23        self.portal['index_html'].allowDiscussion(True) 
    2424        self.absolute_url = self.portal['index_html'].absolute_url_path() 
    2525 
     
    3636        path = '%s/discussion_reply_form'%self.absolute_url 
    3737        resp1 = self.publish(path, self.basic_auth, request_method='GET').getBody() 
    38         patt = re.compile('<img\s+src="%s(/getCaptchaImage/[0-9a-fA-F]+)"'%self.portal.absolute_url()) 
     38        patt = re.compile('\s+src="%s(/getCaptchaImage/[0-9a-fA-F]+)"'%self.portal.absolute_url()) 
    3939        match_obj = patt.search(resp1) 
    4040        img_url = match_obj.group(1)