406
410
def _check_add(self, key, lines, random_id, check_content):
407
411
"""check that version_id and lines are safe to add."""
411
416
self.check_not_reserved_id(version_id)
412
417
# TODO: If random_id==False and the key is already present, we should
413
418
# probably check that the existing content is identical to what is