Ignore:
Timestamp:
Jun 14, 2010 8:12:00 PM (14 years ago)
Author:
mylan
Message:

#206: added workflow vocabularies tests for SitemapTypes?

Location:
quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps/browser/configletview.py

    r2520 r2533  
    102102        return sitemaps 
    103103 
    104  
    105104    def sitemapsDict(self): 
    106105        content, mobile, news = [],[],[] 
  • quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps/tests/testSitemaps.py

    r2530 r2533  
    33# 
    44from base import * 
     5from Products.Archetypes import atapi 
    56from Products.CMFPlone.utils import _createObjectByType 
    67 
     
    5960        self.assertEqual(self.contentSM.getPingTransitions(), ('plone_workflow#publish',)) 
    6061        self.assert_(ping_googlesitemap in pwf.scripts.keys(),"Not add wf script") 
     62 
     63    def testWorkflowStates(self): 
     64        wfstates = self.contentSM.getWorkflowStates() 
     65        self.assertEqual(isinstance(wfstates, atapi.DisplayList), True) 
     66        self.assertEqual("published" in wfstates.keys(), True) 
     67 
     68    def testWorkflowStates(self): 
     69        wftrans = self.contentSM.getWorkflowTransitions() 
     70        self.assertEqual(isinstance(wftrans, atapi.DisplayList), True) 
     71        self.assertEqual("simple_publication_workflow#publish" in wftrans.keys(), True) 
    6172 
    6273 
Note: See TracChangeset for help on using the changeset viewer.