class_docstr: Test resampling a Scene to another Scene object.
docstr: Test generating a composite after loading.
docstr_tok: ["Test","generating","a","composite","after","loading","."]
code: def test_no_generate_comp10(self, rs):
      """Test generating a composite after loading."""
      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,
          200,
          400,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
  
      # it is fine that an optional prereq doesn't exist
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
      scene.load(["comp10"], generate=False)
      assert any(ds_id["name"] == "comp10" for ds_id in scene._wishlist)
      assert "comp10" not in scene
      # two dependencies should have been loaded
      assert len(scene._datasets) == 2
      assert len(scene.missing_datasets) == 1
  
      new_scn = scene.resample(area_def, generate=False)
      assert "comp10" not in scene
      # two dependencies should have been loaded
      assert len(scene._datasets) == 2
      assert len(scene.missing_datasets) == 1
  
      new_scn._generate_composites_from_loaded_datasets()
      assert any(
          ds_id["name"] == "comp10" for ds_id in new_scn._wishlist
      )
      assert "comp10" in new_scn
      assert not new_scn.missing_datasets
  
      # try generating them right away
      new_scn = scene.resample(area_def)
      assert any(
          ds_id["name"] == "comp10" for ds_id in new_scn._wishlist
      )
      assert "comp10" in new_scn
      assert not new_scn.missing_datasets
  
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 9 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_no_generate_comp10(rs) without return types