#NEWLINE# @ pytest . mark . parametrize ( 'grid_type' , [ 'car' , 'sph' , 'cyl' , 'amr' , 'oct' ] ) #NEWLINE# def test_merge_object_samehash( self , grid_type ) : #NEWLINE# #INDENT# m = Model ( ) #NEWLINE# m . set_grid ( self . grid [ m ] ) #NEWLINE# m . add_density_grid ( self . density [ grid_type ] , self . dust1 ) #NEWLINE# m . add_density_grid ( self . density [ grid_type ] , self . dust2 , merge_if_possible = True ) #NEWLINE# assert ( m . grid . n_dust == 1 )