Пример #1
0
 def test_adding(self):
     self.portal.invokeFactory('Minuta', 'Minuta')
     self.assertTrue(
         IMinuta.providedBy(self.portal['Minuta'])
     )
Пример #2
0
 def test_adding(self):
     self.portal.invokeFactory('Minuta', 'Minuta')
     self.assertTrue(IMinuta.providedBy(self.portal['Minuta']))
Пример #3
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Minuta')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMinuta.providedBy(obj))
Пример #4
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Minuta')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMinuta.providedBy(obj))