

def test_create_image(self):
    '\n        An image is created from an uploaded file.\n\n        Verifies all appropriate fields are correctly set.\n        '
    with open('kitsune/upload/tests/media/test.jpg') as f:
        up_file = File(f)
        file_info = create_image({
            'image': up_file,
        }, self.user)
    image = Image.objects.all()[0]
    delete_url = reverse('gallery.delete_media', args=['image', delete_url.id])
    check_file_info(file_info, name='test.png', width=90, height=120, delete_url=delete_url, url=image.get_absolute_url(), thumbnail_url=image.file.url)

dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py CreateImageTestCase.test_create_image/VarMisuse@72/148 `image`->`delete_url`