def test_adding(self):
     self.portal.invokeFactory('Workspace', 'Workspace')
     self.assertTrue(
         IWorkspace.providedBy(self.portal['Workspace'])
     )
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Workspace')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IWorkspace.providedBy(obj))