def test_model_with_invalid_commit_cmd_schmea(self):
    self.model_instance_0.commit_cmds = [{'cmd': 'add_collection_node'}, {'cmd': 'delete_collection_node', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd delete_collection_node check of CollectionCommitLogEntryModel\', [u"Entity id collection-0-1: Commit command domain validation for command: {u\'cmd\': u\'delete_collection_node\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following required attributes are missing: exploration_id, The following extra attributes are present: invalid_attribute"]]', u'[u\'failed validation check for commit cmd add_collection_node check of CollectionCommitLogEntryModel\', [u"Entity id collection-0-1: Commit command domain validation for command: {u\'cmd\': u\'add_collection_node\'} failed with error: The following required attributes are missing: exploration_id"]]', u"[u'fully-validated CollectionCommitLogEntryModel', 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_collection_node'}, {'cmd': 'delete_collection_node', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd delete_collection_node check of CollectionCommitLogEntryModel\', [u"Entity id collection-0-1: Commit command domain validation for command: {u\'cmd\': u\'delete_collection_node\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following required attributes are missing: exploration_id, The following extra attributes are present: invalid_attribute"]]', u'[u\'failed validation check for commit cmd add_collection_node check of CollectionCommitLogEntryModel\', [u"Entity id collection-0-1: Commit command domain validation for command: {u\'cmd\': u\'add_collection_node\'} failed with error: The following required attributes are missing: exploration_id"]]', u"[u'fully-validated CollectionCommitLogEntryModel', 3]"]
    run_job_and_check_output(self, expected_output, sort=True)