def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='ejercicios.plone4.especial')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(IEspecial.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('ejercicios.plone4.especial', 'esp1')
     esp1 = self.folder['esp1']
     self.failUnless(IEspecial.providedBy(esp1))