def METHOD_NAME(self):
    """
    Test of an exception occurring when saving using the RetentionDateObjectMixin.
    When mock_s3_utils.update_expiration_date raise an exception,
    it should not block the save of the `Video` object,
    and the exception should be logged.
    """
    self.mock_s3_utils.update_expiration_date.side_effect = ClientError(
        {"Error": {"Message": "Can't access the S3 API"}},
        "put_bucket_lifecycle_configuration",
    )
    with patch(
        "marsha.core.models.playlist.s3_utils", new=self.mock_s3_utils
    ), self.assertLogs("marsha.core.models", level="ERROR") as log:
        video = VideoFactory(playlist=self.playlist)
        video.delete()
        video.refresh_from_db()
        self.assertIn(
            "Error while updating expiration date in S3: An error occurred (Unknown) "
            "when calling the put_bucket_lifecycle_configuration operation: "
            "Can't access the S3 API",
            log.output[0],
        )