def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.nitf.content')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(INITF.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('collective.nitf.content', 'n1')
     n1 = self.folder['n1']
     self.failUnless(INITF.providedBy(n1))