#NEWLINE# def test_migrations( self ) : #NEWLINE# #INDENT# traj = Trajectory ( name = 'Testmigrate' , filename = make_temp_dir ( 'migrate.hdf5' ) , add_time = True ) #NEWLINE# traj . f_add_result ( 'I.am.a.mean.resu' , 42 , comment = 'Test' ) #NEWLINE# traj . f_add_derived_parameter ( 'ffa' , 42 ) #NEWLINE# traj . f_store ( ) #NEWLINE# new_file = make_temp_dir ( 'migrate2.hdf5' ) #NEWLINE# traj . f_migrate ( filename = new_file ) #NEWLINE# traj . f_store ( ) #NEWLINE# new_traj = Trajectory ( ) #NEWLINE# new_traj . f_migrate ( new_name = traj . v_name , filename = new_file , in_store = True ) #NEWLINE# new_traj . v_auto_load = True #NEWLINE# self . assertTrue ( ( new_traj . results . I . am . a . mean . resu == 42 ) )