#NEWLINE# def test_rasterize_all_touched( basic_geometry , basic_image ) : #NEWLINE# #INDENT# with Env ( ) : #NEWLINE# #INDENT# assert numpy . array_equal ( basic_image , rasterize ( [ basic_geometry ] , out_shape = DEFAULT_SHAPE , all_touched = True ) )