Пример #1
0
 def test_adding_as_editor_at_members_folder(self):
     setRoles(self.portal, TEST_USER_ID, ['Editor'])
     self.members.invokeFactory('conference.profile', 'guido')
     profile = self.members['guido']
     self.assertTrue(IPersonProfile.providedBy(profile))
Пример #2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='conference.profile')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IPersonProfile.providedBy(new_object))
Пример #3
0
 def test_adding_as_manager_at_members_folder(self):
     self.members.invokeFactory('conference.profile', 'guido')
     profile = self.members['guido']
     self.assertTrue(IPersonProfile.providedBy(profile))