#NEWLINE# def test_rasterize_like_raster_src_crs_mismatch( tmpdir , runner , basic_feature , pixelated_image_file ) : #NEWLINE# #INDENT# output = str ( tmpdir . join ( 'test.tif' ) ) #NEWLINE# result = runner . invoke ( main_group , [ 'rasterize' , output , '--like' , pixelated_image_file , '--src-crs' , 'EPSG:3857' ] , input = json . dumps ( basic_feature ) ) #NEWLINE# assert ( result . exit_code == 2 ) #NEWLINE# assert ( 'GeoJSON does not match crs of --like raster' in result . output )