Beispiel #1
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI,
                        name='collective.composition.pagefragment')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(IPageFragment.providedBy(new_object))
Beispiel #2
0
 def test_adding(self):
     self.folder.invokeFactory('collective.composition.pagefragment', 'pf1')
     pf1 = self.folder['pf1']
     self.failUnless(IPageFragment.providedBy(pf1))