def METHOD_NAME(self, call):
    """compress_image does not fail when no file is provided."""
    image = ImageAttachment(content_object=self.obj, creator=self.user)
    image.save()
    compress_image("upload.ImageAttachment", image.id, "file")
    assert not call.called