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