def test_crop_raises_error_for_impossible_transformation(self):
    raster = self.read_only_virtual_geo_raster()
    vector = GeoVector(Polygon.from_bounds((- 180), (- 90), 180, 90), crs=WGS84_CRS)
    with self.assertRaises(GeoRaster2Error):
        raster.crop(vector)
def test_crop_raises_error_for_impossible_transformation(self):
    raster = self.read_only_virtual_geo_raster()
    vector = GeoVector(Polygon.from_bounds((- 180), (- 90), 180, 90), crs=WGS84_CRS)
    with self.assertRaises(GeoRaster2Error):
        raster.crop(vector)