def test_load_sim(): sim = BioSim() sim.clean_simulation(10) sim.save_sim(save_load_name) sim = BioSim(island_save_name=save_load_name) assert sim.year == 10
def test_save_sim(): sim = BioSim() sim.clean_simulation(10) sim.save_sim(save_load_name) assert os.path.isfile(save_load_name + '.pkl')