示例#1
0
 def test_adding(self):
     self.portal.invokeFactory('Task', 'Task')
     self.assertTrue(
         ITask.providedBy(self.portal['Task'])
     )
示例#2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Task')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(ITask.providedBy(obj))