#NEWLINE# def test_mask_no_geojson( runner , tmpdir , pixelated_image , pixelated_image_file ) : #NEWLINE# #INDENT# ' Mask without geojson input should simply return same raster as input ' #NEWLINE# output = str ( tmpdir . join ( 'test.tif' ) ) #NEWLINE# result = runner . invoke ( main_group , [ 'mask' , result , output ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# assert os . path . exists ( output ) #NEWLINE# with rasterio . open ( output ) as out : #NEWLINE# #INDENT# assert numpy . array_equal ( pixelated_image , out . read ( 1 , masked = True ) . filled ( 0 ) )