def test_create_dynaitem(self):
     self.portal.invokeFactory('collective.dynapage', id='dynapage',
                               title=u'Dynapage')
     obj = self.portal['dynapage']
     obj.invokeFactory('collective.dynaitem.image', id='image1', title=u"Image 1")
     self.assertTrue('image1' in obj.objectIds())
     image = obj['image1']
     self.failUnless(IDynaItem.providedBy(image))
     self.failUnless(ICarouselItem.providedBy(image))
     self.failUnless(IDynaImage.providedBy(image))
 def test_create_dynaitem(self):
     self.portal.invokeFactory('collective.dynapage', id='dynapage',
                               title=u'Dynapage')
     obj = self.portal['dynapage']
     obj.invokeFactory('collective.dynaitem.collection', id='collection',
                       title=u'Collection')
     self.assertTrue('collection' in obj.objectIds())
     collection = obj['collection']
     self.failUnless(IDynaCollection.providedBy(collection))
     self.failUnless(IDynaItem.providedBy(collection))
     self.failUnless(IDynaItemPosition.providedBy(collection))
     self.failUnless(IListsItem.providedBy(collection))