def setUp(self):
        self.portal = self.layer['portal']
        self.request = self.layer['request']
        self.pc = getToolByName(self.portal, 'portal_catalog')
        
        setRoles(self.portal, TEST_USER_ID, ['Manager'])

        setupTestContent(self)
    
        self.link_control_api = getMultiAdapter((self.video1, self.request),
                                                name='link-control')
Example #2
0
 def setUp(self):
     self.portal = self.layer['portal']
     self.request = self.layer['request']
     self.pc = getToolByName(self.portal, 'portal_catalog')
     
     alsoProvides(self.request, ITelesurAPILayer)
     setRoles(self.portal, TEST_USER_ID, ['Manager'])
     
     self.portal_api = getMultiAdapter((self.portal, self.request),
                                       name='portal_api')
         
     setupTestContent(self)
     self.brains = self.pc(portal_type='collective.nitf.content',
                           sort_on='created')