@patch.object(GeoRaster2, '_crop')
def test_crop_use_crop_image_for_a_loaded_image(self, mock__crop):
    coords = mercantile.xy_bounds(*tiles[15])
    shape = GeoVector(Polygon.from_bounds(*coords), WEB_MERCATOR_CRS)
    raster = self.read_only_virtual_geo_raster()
    raster.crop(shape, MERCATOR_RESOLUTION_MAPPING[15])
    assert mock__crop.called_once
@patch.object(GeoRaster2, '_crop')
def test_crop_use_crop_image_for_a_loaded_image(self, mock__crop):
    coords = mercantile.xy_bounds(*tiles[15])
    shape = GeoVector(Polygon.from_bounds(*coords), WEB_MERCATOR_CRS)
    raster = self.read_only_virtual_geo_raster()
    raster.crop(shape, MERCATOR_RESOLUTION_MAPPING[15])
    assert mock__crop.called_once