def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Employee')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IEmployee.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('Employee', 'e1')
     e1 = self.folder['e1']
     self.assertTrue(IEmployee.providedBy(e1))