Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/r/Products.projectmanager-1.2.4/Products/projectmanager/tests/testPM_ProjectManager.py   Products.projectmanager(Download)
    def test_getHumanResources(self):
        self.login('aManager')
        pm = self.mProject
        members = pm.getHumanRessources()
        self.failUnless([m for m in members if m[0] not in [x.getId() for x in self.members]])

src/p/r/Products.projectmanager-1.2.4/Products/projectmanager/tests/testSetup.py   Products.projectmanager(Download)
    def test_tools(self):
        ids = self.portal.objectIds()
        self.failUnless('archetype_tool' in ids)
 
    def test_types(self):
        ids = self.portal.portal_types.objectIds()
        self.failUnless('Document' in ids)
    def test_skins(self):
        ids = self.portal.portal_skins.objectIds()
        self.failUnless('plone_templates' in ids)
 
    def test_workflows(self):
        ids = self.portal.portal_workflow.objectIds()
        self.failUnless('plone_workflow' in ids)
    def test_workflowChains(self):
        getChain = self.portal.portal_workflow.getChainForPortalType
        self.failUnless(('plone_workflow' in getChain('Document')) or ('simple_publication_workflow' in getChain('Document')))
 
    # Manually created methods