def test_one_feedback_when_the_deletion_is_repeated_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    feedback_thread_model.original_author_id = self.user_1_id
    feedback_thread_model.put_for_human()
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    feedback_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.feedback]
    new_feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(new_feedback_thread_model.original_author_id, feedback_mappings[self.FEEDBACK_1_ID])
def test_one_feedback_when_the_deletion_is_repeated_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    feedback_thread_model.original_author_id = self.user_1_id
    feedback_thread_model.put_for_human()
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    feedback_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.feedback]
    new_feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(new_feedback_thread_model.original_author_id, feedback_mappings[self.FEEDBACK_1_ID])