Пример #1
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.nitf.content')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(INITF.providedBy(new_object))
Пример #2
0
 def test_adding(self):
     self.folder.invokeFactory('collective.nitf.content', 'n1')
     n1 = self.folder['n1']
     self.failUnless(INITF.providedBy(n1))