예제 #1
0
 def test_adding(self):
     self.portal.invokeFactory('BlogEntry', 'BlogEntry')
     self.assertTrue(
         IBlogEntry.providedBy(self.portal['BlogEntry'])
     )
예제 #2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='BlogEntry')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IBlogEntry.providedBy(obj))