class_docstr: Test resampling a Scene to another Scene object.
docstr: Test that the Scene is properly copied during resampling.
  
  The Scene that is created as a copy of the original Scene should not
  be able to affect the original Scene object.
docstr_tok: ["Test","that","the","Scene","is","properly","copied","during","resampling",".","The","Scene","that","is","created","as","a","copy","of","the","original","Scene","should","not","be","able","to","affect","the","original","Scene","object","."]
code: def test_resample_scene_preserves_requested_dependencies(self, rs):
      """Test that the Scene is properly copied during resampling.
  
      The Scene that is created as a copy of the original Scene should not
      be able to affect the original Scene object.
  
      """
      from pyresample.geometry import AreaDefinition
      from pyresample.utils import proj4_str_to_dict
  
      rs.side_effect = self._fake_resample_dataset
      proj_dict = proj4_str_to_dict(
          "+proj=lcc +datum=WGS84 +ellps=WGS84 "
          "+lon_0=-95. +lat_0=25 +lat_1=25 "
          "+units=m +no_defs"
      )
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          proj_dict,
          5,
          5,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
      area_def.get_area_slices = mock.MagicMock()
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
  
      # Set PYTHONHASHSEED to 0 in the interpreter to test as intended (comp26 comes before comp14)
      scene.load(["comp26", "comp14"], generate=False)
      scene.resample(area_def, unload=True)
      new_scene_2 = scene.resample(area_def, unload=True)
  
      assert "comp14" not in scene
      assert "comp26" not in scene
      assert "comp14" in new_scene_2
      assert "comp26" in new_scene_2
      assert "ds1" not in new_scene_2
  
imports: from unittest import mock
  import numpy
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.dataset.dataid import default_id_keys_config
  from satpy.tests.utils import make_cid, make_dataid
label_desc: Use image node_id 4 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_resample_scene_preserves_requested_dependencies(rs) without return types