コード例 #1
0
 def test_adding(self):
     self.portal.invokeFactory("collective.DataTable.Configuration", "Configuration")
     self.assertTrue(IConfiguration.providedBy(self.portal["Configuration"]))
コード例 #2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name="collective.DataTable.Configuration")
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IConfiguration.providedBy(obj))