#NEWLINE# def test_build_overviews_two( data ) : #NEWLINE# #INDENT# inputfile = str ( data . join ( 'RGB.byte.tif' ) ) #NEWLINE# with rasterio . open ( inputfile , 'r+' ) as src : #NEWLINE# #INDENT# overview_factors = [ 2 , 4 ] #NEWLINE# src . build_overviews ( src , resampling = Resampling . nearest ) #NEWLINE# assert ( src . overviews ( 1 ) == [ 2 , 4 ] ) #NEWLINE# assert ( src . overviews ( 2 ) == [ 2 , 4 ] ) #NEWLINE# assert ( src . overviews ( 3 ) == [ 2 , 4 ] )