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))
Exemple #3
0
 def test_adding(self):
     self.portal.invokeFactory('messageboard', 'board')
     board = self.portal['board']
     self.failUnless(IMessageboard.providedBy(board))
Exemple #4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='messageboard')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(IMessageboard.providedBy(new_object))