#NEWLINE# def test_xy_array_bilinear_window( ) : #NEWLINE# #INDENT# ' integration test\n    ' #NEWLINE# ( x , y ) = ( 245309 , 1000064 ) #NEWLINE# with rasterio . open ( raster ) as src : #NEWLINE# #INDENT# ( win , unitxy ) = point_window_unitxy ( x , y , affine ) #NEWLINE# arr = src . read ( 1 , window = win ) #NEWLINE# #UNINDENT# val = bilinear ( arr , * unitxy ) #NEWLINE# assert ( round ( val ) == 74 )