示例#1
0
 def createSingleImageType(self):
     # create test image as testuser
     self.portal.invokeFactory(
         'Image',
         'testimage',
         title=u'I\'m a testing Image'
     )
     self.img = self.portal['testimage']
     self.img.image = dummy_named_blob_png_image()
     self.img.reindexObject()
     transaction.commit()
    def setUp(self):
        self.app = self.layer['app']
        self.portal = self.layer['portal']

        _createObjectByType('Image',
                            self.portal,
                            'testimage',
                            title='I\'m a testing Image')

        self.img = self.portal.testimage
        self.img.image = dummy_named_blob_png_image()
示例#3
0
    def setUp(self):
        self.app = self.layer['app']
        self.portal = self.layer['portal']

        _createObjectByType(
            'Image',
            self.portal,
            'testimage',
            title='I\'m a testing Image'
        )

        self.img = self.portal.testimage
        self.img.image = dummy_named_blob_png_image()