def test_version_assigned_with_versions(self): """ Test assign on a version which will assign a new entered value on the given version. Notice that the older versions will keep the initial value """ current_id = IVersionControl(self.doc).versionId doc2 = create_version(self.doc) assert IVersionControl(self.doc).versionId == current_id assign_version(doc2, 'NEWVersion') assert IVersionControl(doc2).versionId != current_id
def test_version_assigned(self): """ Test assign on a version which will assign a new entered value """ assign_version(self.doc, 'NEWVersion') assert IVersionControl(self.doc).versionId == 'NEWVersion'