def test_invalid_collection_version_in_model_id(self):
    model_with_invalid_version_in_id = collection_models.CollectionSnapshotMetadataModel(id='0-3', committer_id=self.owner_id, commit_type='edit', commit_message='msg', commit_cmds=[{}])
    model_with_invalid_version_in_id.put()
    expected_output = [u"[u'failed validation check for collection model version check of CollectionSnapshotMetadataModel', [u'Entity id 0-3: Collection model corresponding to id 0 has a version 1 which is less than the version 3 in snapshot metadata model id']]", u"[u'fully-validated CollectionSnapshotMetadataModel', 3]"]
    run_job_and_check_output(self, expected_output, sort=True)
def test_invalid_collection_version_in_model_id(self):
    model_with_invalid_version_in_id = collection_models.CollectionSnapshotMetadataModel(id='0-3', committer_id=self.owner_id, commit_type='edit', commit_message='msg', commit_cmds=[{}])
    model_with_invalid_version_in_id.put()
    expected_output = [u"[u'failed validation check for collection model version check of CollectionSnapshotMetadataModel', [u'Entity id 0-3: Collection model corresponding to id 0 has a version 1 which is less than the version 3 in snapshot metadata model id']]", u"[u'fully-validated CollectionSnapshotMetadataModel', 3]"]
    run_job_and_check_output(self, expected_output, sort=True)