def test_adding(self): self.portal.invokeFactory('messageboard', 'board') self.portal.board.invokeFactory('topic', 'topic') self.portal.board.topic.invokeFactory('conversation', 'conversation') obj = self.portal.board.topic['conversation'] self.failUnless(IConversation.providedBy(obj))
def test_factory(self): fti = queryUtility( IDexterityFTI, name='Conversation' ) factory = fti.factory new_object = createObject(factory) self.failUnless(IConversation.providedBy(new_object))
def test_adding(self): self.portal.invokeFactory( 'Message Board', id='board' ) self.portal.board.invokeFactory( 'Topic', id='topic' ) self.portal.board.topic.invokeFactory( 'Conversation', id='conversation' ) obj = self.portal.board.topic['conversation'] self.failUnless(IConversation.providedBy(obj))