def test_one_feedback_is_pseudonymized(self):
    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]
    feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(feedback_thread_model.original_author_id, feedback_mappings[self.FEEDBACK_1_ID])
    suggestion_model_model = suggestion_models.GeneralSuggestionModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(suggestion_model_model.author_id, feedback_mappings[self.FEEDBACK_1_ID])
def test_one_feedback_is_pseudonymized(self):
    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]
    feedback_thread_model = feedback_models.GeneralFeedbackThreadModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(feedback_thread_model.original_author_id, feedback_mappings[self.FEEDBACK_1_ID])
    suggestion_model_model = suggestion_models.GeneralSuggestionModel.get_by_id(self.FEEDBACK_1_ID)
    self.assertEqual(suggestion_model_model.author_id, feedback_mappings[self.FEEDBACK_1_ID])