#NEWLINE# def test_rasterize_src_crs( tmpdir , runner , basic_feature ) : #NEWLINE# #INDENT# output = str ( tmpdir . join ( 'test.tif' ) ) #NEWLINE# result = runner . invoke ( main_group , [ 'rasterize' , output , '--dimensions' , DEFAULT_SHAPE [ 0 ] , DEFAULT_SHAPE [ 1 ] , '--src-crs' , 'EPSG:3857' ] , input = json . dumps ( basic_feature ) ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# assert os . path . exists ( output ) #NEWLINE# with rasterio . open ( output ) as out : #NEWLINE# #INDENT# assert ( out . crs [ 'init' ] . lower ( ) == 'epsg:3857' )