class_docstr: Test resampling a Scene to another Scene object.
docstr: Test requesting a composite after resampling.
docstr_tok: ["Test","requesting","a","composite","after","resampling","."]
code: def test_comp_loading_after_resampling_existing_sensor(self):
      """Test requesting a composite after resampling."""
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
      scene.load(["ds1", "ds2"])
      new_scn = scene.resample(resampler="native")
  
      # Can't load from readers after resampling
      with pytest.raises(KeyError):
          new_scn.load(["ds3"])
  
      # But we can load composites because the sensor composites were loaded
      # when the reader datasets were accessed
      new_scn.load(["comp2"])
      assert "comp2" in new_scn
  
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 10 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_comp_loading_after_resampling_existing_sensor() without return types