def test_model_with_invalid_id(self):
    model_with_invalid_id = exp_models.ExplorationCommitLogEntryModel(id='invalid-0-1', user_id=self.owner_id, username=self.OWNER_USERNAME, commit_type='edit', commit_message='msg', commit_cmds=[{}], post_commit_status=constants.ACTIVITY_STATUS_PUBLIC, post_commit_is_private=False)
    model_with_invalid_id.exploration_id = '0'
    model_with_invalid_id.put()
    expected_output = [(u"[u'failed validation check for model id check of ExplorationCommitLogEntryModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_with_invalid_id.id), u"[u'failed validation check for commit cmd check of ExplorationCommitLogEntryModel', [u'Entity id invalid-0-1: No commit command domain object defined for entity with commands: [{}]']]", u"[u'fully-validated ExplorationCommitLogEntryModel', 4]"]
    run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_id(self):
    model_with_invalid_id = exp_models.ExplorationCommitLogEntryModel(id='invalid-0-1', user_id=self.owner_id, username=self.OWNER_USERNAME, commit_type='edit', commit_message='msg', commit_cmds=[{}], post_commit_status=constants.ACTIVITY_STATUS_PUBLIC, post_commit_is_private=False)
    model_with_invalid_id.exploration_id = '0'
    model_with_invalid_id.put()
    expected_output = [(u"[u'failed validation check for model id check of ExplorationCommitLogEntryModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_with_invalid_id.id), u"[u'failed validation check for commit cmd check of ExplorationCommitLogEntryModel', [u'Entity id invalid-0-1: No commit command domain object defined for entity with commands: [{}]']]", u"[u'fully-validated ExplorationCommitLogEntryModel', 4]"]
    run_job_and_check_output(self, expected_output, sort=True)