def test_correct_question_models(self):
    state = state_domain.State.create_default_state('ABC')
    question_state_data = state.to_dict()
    question_model = question_models.QuestionModel(id=self.QUESTION_ID, question_state_data=question_state_data, question_state_data_schema_version=1, language_code='en')
    question_model.commit(self.albert_id, 'question model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND PARENT MODEL - QuestionSnapshotMetadataModel', 1], ['FOUND COMMIT LOGS - QuestionSnapshotMetadataModel', 1]]
    self.assertItemsEqual(expected_output, actual_output)
def test_correct_question_models(self):
    state = state_domain.State.create_default_state('ABC')
    question_state_data = state.to_dict()
    question_model = question_models.QuestionModel(id=self.QUESTION_ID, question_state_data=question_state_data, question_state_data_schema_version=1, language_code='en')
    question_model.commit(self.albert_id, 'question model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND PARENT MODEL - QuestionSnapshotMetadataModel', 1], ['FOUND COMMIT LOGS - QuestionSnapshotMetadataModel', 1]]
    self.assertItemsEqual(expected_output, actual_output)