def test_generate_deleted_file(self):
        image = ImageAttachment(content_object=self.obj, creator=self.user)
        with open('kitsune/upload/tests/media/test.jpg') as f:
            up_file = File(f)
            image.file.save(up_file.name, up_file, save=True)
        # The field will be set but the file isn't there.
        os.remove(image.file.path)
        generate_thumbnail(image, 'file', 'thumbnail')
A hook to control how dates are formatted.
dataset/ETHPy150Open mozilla/kitsune/kitsune/upload/tests/test_tasks.py/GenerateThumbnail.test_generate_deleted_file--crossover with--dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/serializers.py/Serializer.format_date