#NEWLINE# @ pytest . mark . parametrize ( 'grid_type' , ALL_GRID_TYPES ) #NEWLINE# def test_to_yt( self , tmpdir , grid_type ) : #NEWLINE# #INDENT# from yt.mods import ProjectionPlot #NEWLINE# g = self . grid [ grid_type ] #NEWLINE# g [ 'density' ] = [ ] #NEWLINE# g [ 'density' ] . append ( self . density [ grid_type ] ) #NEWLINE# pf = g . to_yt ( ) #NEWLINE# p = ProjectionPlot ( pf , 'x' , [ 'density' ] , center = 'c' , origin = 'native' ) #NEWLINE# p . save ( tmpdir . join ( 'test.png' ) . strpath )