#NEWLINE# def test_rgb( tmpdir ) : #NEWLINE# #INDENT# outputname = str ( tmpdir . join ( 'test.tif' ) ) #NEWLINE# runner = CliRunner ( ) #NEWLINE# result = runner . invoke ( convert , [ 'tests/data/RGB.byte.tif' , outputname , '--rgb' ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# with rasterio . open ( outputname ) as src : #NEWLINE# #INDENT# assert ( src . colorinterp ( 1 ) == rasterio . enums . ColorInterp . red )