def test_adding(self):
     self.portal.invokeFactory('Minuta', 'Minuta')
     self.assertTrue(
         IMinuta.providedBy(self.portal['Minuta'])
     )
Example #2
0
 def test_adding(self):
     self.portal.invokeFactory('Minuta', 'Minuta')
     self.assertTrue(IMinuta.providedBy(self.portal['Minuta']))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Minuta')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMinuta.providedBy(obj))
Example #4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Minuta')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMinuta.providedBy(obj))