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