コード例 #1
0
 def test_adding(self):
     self.portal.invokeFactory('Frontpage', 'Frontpage')
     self.assertTrue(
         IFrontpage.providedBy(self.portal['Frontpage'])
     )
コード例 #2
0
 def test_adding(self):
     self.portal.invokeFactory('Frontpage', 'Frontpage')
     self.assertTrue(IFrontpage.providedBy(self.portal['Frontpage']))
コード例 #3
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Frontpage')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IFrontpage.providedBy(obj))
コード例 #4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Frontpage')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IFrontpage.providedBy(obj))