Ignore:
Timestamp:
Aug 22, 2012 10:22:22 AM (8 years ago)
Author:
potar
Message:

Merged sitemap_date branch into trunk

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk

    • Property svn:mergeinfo
      •  

        old new  
        33/quintagroup.plonegooglesitemaps/branches/migratioin_product:2826-2839 
        44/quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 
         5/quintagroup.plonegooglesitemaps/branches/sitemap_date:3481-3509 
        56/quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testPinging.py

    r3163 r3510  
    1111    def afterSetUp(self): 
    1212        super(TestPinging, self).afterSetUp() 
    13         self.workflow.setChainForPortalTypes( 
    14                 pt_names=('News Item', 'Document'), 
    15                 chain="simple_publication_workflow") 
     13        workflow = "simple_publication_workflow" 
     14        self.workflow.setChainForPortalTypes(pt_names=('News Item', 
     15                                                       'Document'), 
     16                                             chain=workflow) 
    1617        gsm_properties = 'googlesitemap_properties' 
    1718        self.gsm_props = self.portal.portal_properties[gsm_properties] 
     
    4344            sys.stdout = back_out 
    4445 
    45         self.assert_('Pinged %s sitemap to Google' \ 
     46        self.assert_('Pinged %s sitemap to Google' 
    4647                     % self.contentSM.absolute_url() in data, 
    4748                     "Not pinged %s: '%s'" % (self.contentSM.id, data)) 
    48         self.assert_('Pinged %s sitemap to Google' \ 
     49        self.assert_('Pinged %s sitemap to Google' 
    4950                     % self.newsSM.absolute_url() in data, 
    5051                     "Not pinged %s: '%s'" % (self.newsSM.id, data)) 
     
    6061            sys.stdout = back_out 
    6162 
    62         self.assert_('Pinged %s sitemap to Google' \ 
     63        self.assert_('Pinged %s sitemap to Google' 
    6364                     % self.newsSM.absolute_url() in data, 
    6465                     "Not pinged %s: '%s'" % (self.newsSM.id, data)) 
    65         self.assert_(not 'Pinged %s sitemap to Google' \ 
     66        self.assert_(not 'Pinged %s sitemap to Google' 
    6667                     % self.contentSM.absolute_url() in data, 
    6768                     "Pinged %s on news: '%s'" % (self.contentSM.id, data)) 
     
    8283            sys.stdout = back_out 
    8384 
    84         self.assert_('Pinged %s sitemap to Google' \ 
     85        self.assert_('Pinged %s sitemap to Google' 
    8586                     % self.contentSM.absolute_url() in data, 
    8687                     "Not pinged %s: '%s'" % (self.contentSM.id, data)) 
    87         self.assert_('Pinged %s sitemap to Google' \ 
     88        self.assert_('Pinged %s sitemap to Google' 
    8889                     % self.newsSM.absolute_url() in data, 
    8990                     "Not pinged %s: '%s'" % (self.newsSM.id, data)) 
Note: See TracChangeset for help on using the changeset viewer.