def METHOD_NAME(project, newproject):
    newproject.load()
    other = project.load(newproject._path, "OtherProject")
    assert hasattr(project, "OtherProject")
    assert len(project.get_loaded_projects()) == 2
    other.close()
    assert not hasattr(project, "OtherProject")
    assert hasattr(project, "NewProject")
    assert len(project.get_loaded_projects()) == 1