def test_voiceover_application_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    suggestion_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.suggestion]
    voiceover_application_model_1 = suggestion_models.GeneralVoiceoverApplicationModel.get_by_id(self.VOICEOVER_1_ID)
    self.assertEqual(voiceover_application_model_1.author_id, suggestion_mappings[self.VOICEOVER_1_ID])
    voiceover_application_model_2 = suggestion_models.GeneralVoiceoverApplicationModel.get_by_id(self.VOICEOVER_2_ID)
    self.assertEqual(voiceover_application_model_2.final_reviewer_id, suggestion_mappings[self.VOICEOVER_2_ID])
def test_voiceover_application_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    suggestion_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.suggestion]
    voiceover_application_model_1 = suggestion_models.GeneralVoiceoverApplicationModel.get_by_id(self.VOICEOVER_1_ID)
    self.assertEqual(voiceover_application_model_1.author_id, suggestion_mappings[self.VOICEOVER_1_ID])
    voiceover_application_model_2 = suggestion_models.GeneralVoiceoverApplicationModel.get_by_id(self.VOICEOVER_2_ID)
    self.assertEqual(voiceover_application_model_2.final_reviewer_id, suggestion_mappings[self.VOICEOVER_2_ID])