class_docstr: Test the scene class.
class_docstr_tok: ["Test","the","scene","class","."]
docstr: Test that Scene sensor_names handles contained sensors properly.
docstr_tok: ["Test","that","Scene","sensor_names","handles","contained","sensors","properly","."]
code: def test_sensor_names_added_datasets(
      self, include_reader, added_sensor, exp_sensors
  ):
      """Test that Scene sensor_names handles contained sensors properly."""
      if include_reader:
          scene = Scene(reader="fake1", filenames=["fake1_1.txt"])
      else:
          scene = Scene()
  
      scene["my_ds"] = xr.DataArray([], attrs={"sensor": added_sensor})
      assert scene.sensor_names == exp_sensors
  
imports: import math
  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 FAKE_FILEHANDLER_END, FAKE_FILEHANDLER_START, make_cid, make_dataid
label_desc: Use image node_id 2 for calling the TestDataAccessMethods obj's underlying member method code with example usage: obj.test_sensor_names_added_datasets(include_reader, added_sensor, exp_sensors) without return types