def test_create_image(self):
        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', image.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)
Creates a Short URL which links to a conversation on the website.
dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py/CreateImageTestCase.test_create_image--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py/AlertManager._CreateViewpointURL