def test_adding(self): self.portal.invokeFactory("collective.DataTable.Configuration", "Configuration") self.assertTrue(IConfiguration.providedBy(self.portal["Configuration"]))
def test_factory(self): fti = queryUtility(IDexterityFTI, name="collective.DataTable.Configuration") factory = fti.factory obj = createObject(factory) self.assertTrue(IConfiguration.providedBy(obj))