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