def openProject(path, status): p = Project.open(path, status) if p is None: return None if p.molecule is None: return None p.molecule.mergeResonances(append=False) return p
def test_openSaveProject(): assert theProject is not None theProject.created = io.Time(10.0) # silly date # this will test the save routines assert theProject.save() == False # this will test the restore routines p = Project.open(TEST,constants.PROJECT_OLD) assert p is not None assert p.created == 10.0
def test_projectNotPresent(): print('Forced error:') theProject = Project.open('notPresent',Project.PROJECT_OLD) assert theProject is None