861
861
"""check that version_id and lines are safe to add."""
863
863
if contains_whitespace(version_id):
865
865
self.check_not_reserved_id(version_id)
866
866
# TODO: If random_id==False and the key is already present, we should
867
867
# probably check that the existing content is identical to what is