def test_one_question_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    question_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.question]
    metadata_model = question_models.QuestionSnapshotMetadataModel.get_by_id(('%s-1' % self.QUESTION_1_ID))
    self.assertEqual(metadata_model.committer_id, question_mappings[self.QUESTION_1_ID])
    commit_log_model = question_models.QuestionCommitLogEntryModel.get_by_id(('question-%s-1' % self.QUESTION_1_ID))
    self.assertEqual(commit_log_model.user_id, question_mappings[self.QUESTION_1_ID])
def test_one_question_is_pseudonymized(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    question_mappings = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id).pseudonymizable_entity_mappings[models.NAMES.question]
    metadata_model = question_models.QuestionSnapshotMetadataModel.get_by_id(('%s-1' % self.QUESTION_1_ID))
    self.assertEqual(metadata_model.committer_id, question_mappings[self.QUESTION_1_ID])
    commit_log_model = question_models.QuestionCommitLogEntryModel.get_by_id(('question-%s-1' % self.QUESTION_1_ID))
    self.assertEqual(commit_log_model.user_id, question_mappings[self.QUESTION_1_ID])