def test_new_from_dict(): """ test to_dict function for GridWind object create a new grid_wind object and make sure it has same properties """ grid_wind = GridWindMover(wind_file,topology_file) dict_ = grid_wind.to_dict('create') gw2 = GridWindMover.new_from_dict(dict_) assert grid_wind == gw2