def test_factory(self): fti = queryUtility( IDexterityFTI, name='messageboard' ) factory = fti.factory new_object = createObject(factory) self.failUnless(IMessageboard.providedBy(new_object))
def test_adding(self): self.portal.invokeFactory( 'messageboard', 'board') board = self.portal['board'] self.failUnless(IMessageboard.providedBy(board))
def test_adding(self): self.portal.invokeFactory('messageboard', 'board') board = self.portal['board'] self.failUnless(IMessageboard.providedBy(board))
def test_factory(self): fti = queryUtility(IDexterityFTI, name='messageboard') factory = fti.factory new_object = createObject(factory) self.failUnless(IMessageboard.providedBy(new_object))