Exemplo n.º 1
0
 def test_adding(self):
     self.portal.invokeFactory('AReadme', 'AReadme')
     self.assertTrue(IAReadme.providedBy(self.portal['AReadme']))
Exemplo n.º 2
0
 def test_adding(self):
     self.portal.invokeFactory('AReadme', 'AReadme')
     self.assertTrue(
         IAReadme.providedBy(self.portal['AReadme'])
     )
Exemplo n.º 3
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='AReadme')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IAReadme.providedBy(obj))
Exemplo n.º 4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='AReadme')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IAReadme.providedBy(obj))