def test_model_with_invalid_commit_cmd_schmea(self):
    self.model_instance_0.commit_cmds = [{'cmd': 'add_state'}, {'cmd': 'delete_state', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd delete_state check of ExplorationCommitLogEntryModel\', [u"Entity id exploration-0-1: Commit command domain validation for command: {u\'cmd\': u\'delete_state\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following required attributes are missing: state_name, The following extra attributes are present: invalid_attribute"]]', u'[u\'failed validation check for commit cmd add_state check of ExplorationCommitLogEntryModel\', [u"Entity id exploration-0-1: Commit command domain validation for command: {u\'cmd\': u\'add_state\'} failed with error: The following required attributes are missing: state_name"]]', u"[u'fully-validated ExplorationCommitLogEntryModel', 3]"]
    run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_commit_cmd_schmea(self):
    self.model_instance_0.commit_cmds = [{'cmd': 'add_state'}, {'cmd': 'delete_state', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd delete_state check of ExplorationCommitLogEntryModel\', [u"Entity id exploration-0-1: Commit command domain validation for command: {u\'cmd\': u\'delete_state\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following required attributes are missing: state_name, The following extra attributes are present: invalid_attribute"]]', u'[u\'failed validation check for commit cmd add_state check of ExplorationCommitLogEntryModel\', [u"Entity id exploration-0-1: Commit command domain validation for command: {u\'cmd\': u\'add_state\'} failed with error: The following required attributes are missing: state_name"]]', u"[u'fully-validated ExplorationCommitLogEntryModel', 3]"]
    run_job_and_check_output(self, expected_output, sort=True)