def test_adding(self):
     self.portal.invokeFactory('ReportConfiguration', 'ReportConfiguration')
     self.assertTrue(
         IReportConfiguration.providedBy(self.portal['ReportConfiguration'])
     )
Esempio n. 2
0
 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))
Esempio n. 4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='ReportConfiguration')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IReportConfiguration.providedBy(obj))