tempest/api/image/v1/test_images.py
def _create_standard_image(cls, name, container_format,
                               disk_format, size):
        """
        Create a new standard image and return the ID of the newly-registered
        image. Note that the size of the new image is a random number between
        1024 and 4096
        """
        image_file = StringIO.StringIO('*' * size)
        name = 'New Standard Image %s' % name
        resp, image = cls.create_image(name=name,
                                       container_format=container_format,
                                       disk_format=disk_format,
                                       is_public=True, data=image_file)
        image_id = image['id']
        return image_id

        Create a new standard image and return the ID of the newly-registered
        image. Note that the size of the new image is a random number between
        1024 and 4096
        
Create a new standard image and return the ID of the newly-registered
image. Note that the size of the new image is a random number between
1024 and 4096
Create a new standard image and return the ID of the newly - registered image . Note that the size of the new image is a random number between 1024 and 4096
def _create_standard_image(cls, name, container_format,
                               disk_format, size):
        image_file = StringIO.StringIO('*' * size)
        name = 'New Standard Image %s' % name
        resp, image = cls.create_image(name=name,
                                       container_format=container_format,
                                       disk_format=disk_format,
                                       is_public=True, data=image_file)
        image_id = image['id']
        return image_id
def _create_standard_image ( cls , name , container_format , disk_format , size ) : image_file = StringIO . StringIO ( '*' * size ) name = 'New Standard Image %s' % name resp , image = cls . create_image ( name = name , container_format = container_format , disk_format = disk_format , is_public = True , data = image_file ) image_id = image [ 'id' ] return image_id
Create a new standard image and return the ID of the newly-registered
image.
Create a new standard image and return the ID of the newly - registered image .
"""
        Create a new standard image and return the ID of the newly-registered
        image. Note that the size of the new image is a random number between
        1024 and 4096
        """
cls
name
container_format
disk_format
size