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))
def test_factory(self): fti = queryUtility(IDexterityFTI, name='conference.profile') factory = fti.factory new_object = createObject(factory) self.assertTrue(IPersonProfile.providedBy(new_object))
def test_adding_as_manager_at_members_folder(self): self.members.invokeFactory('conference.profile', 'guido') profile = self.members['guido'] self.assertTrue(IPersonProfile.providedBy(profile))