              self.assertEqual(mocked_clone.call_count, 1)
  
      def test_raster_transform_clone_name(self):
          # Create in file based raster.
          rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
          source = GDALRaster(
              {
                  "datatype": 1,
                  "driver": "tif",
                  "name": rstfile.name,
 
</s> remove             rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add             rstfile = NamedTemporaryFile(suffix=".tif") </s> remove                 rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add                 rstfile = NamedTemporaryFile(suffix=".tif") </s> remove         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif") </s> remove         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif") </s> remove         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif")
        rstfile = NamedTemporaryFile(suffix=".tif")
              self.assertEqual(mocked_clone.call_count, 1)
  
      def test_raster_transform_clone_name(self):
          # Create in file based raster.
        rstfile = NamedTemporaryFile(suffix=".tif")
          source = GDALRaster(
              {
                  "datatype": 1,
                  "driver": "tif",
                  "name": rstfile.name,
keep keep keep keep replace keep keep keep keep keep
 Fixed #34374 -- Fixed GIS tests on Windows. 
tests/gis_tests/gdal_tests/test_raster.py