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