#NEWLINE# def test_rasterize_invalid_like_raster( tmpdir , runner , basic_feature ) : #NEWLINE# #INDENT# output = str ( tmpdir . join ( 'test.tif' ) ) #NEWLINE# result = runner . invoke ( main_group , [ 'rasterize' , basic_feature , '--like' , str ( tmpdir . join ( 'foo.tif' ) ) ] , input = json . dumps ( basic_feature ) ) #NEWLINE# assert ( result . exit_code == 2 ) #NEWLINE# assert ( 'Invalid value for "--like":' in result . output )