#NEWLINE# def test_saving_tracks( ) : #NEWLINE# #INDENT# routes = Obstacle_Tracks ( MAX_OBS_HEIGHT = MAX_OBS_HEIGHT , MAX_OBS_WIDTH = MAX_OBS_WIDTH , WINDOW_HEIGHT = WINDOW_HEIGHT , WINDOW_WIDTH = WINDOW_WIDTH , N_OBSTABLE_GEN = N_OBSTABLE_GEN , MIN_GAP = MIN_GAP , N_TRACKS_GEN = N_TRACKS_GEN ) #NEWLINE# output5 = routes . generate_tracks #NEWLINE# saved = output5 [ 0 ] #NEWLINE# np . save ( os . path . join ( os . getcwd ( ) , 'Tests' , 'Test_Track' ) , saved ) #NEWLINE# loaded = np . load ( os . path . join ( os . getcwd ( ) , 'Tests' , 'Test_Track.npy' ) ) #NEWLINE# assert ( saved . shape == loaded . shape ) , 'Dimensions Incorrect'