class_docstr: Test dataset grouping in MultiScene.
class_docstr_tok: ["Test","dataset","grouping","in","MultiScene","."]
docstr: Test that multiple datasets from the same scene in one group fails.
docstr_tok: ["Test","that","multiple","datasets","from","the","same","scene","in","one","group","fails","."]
code: def test_fails_to_add_multiple_datasets_from_the_same_scene_to_a_group(
      self, multi_scene
  ):
      """Test that multiple datasets from the same scene in one group fails."""
      groups = {DataQuery(name="mygroup"): ["ds1", "ds2"]}
      multi_scene.group(groups)
      with pytest.raises(
          ValueError,
          match="Cannot add multiple datasets from a scene to the same group",
      ):
          next(multi_scene.scenes)
  
file_path: satpy/satpy/tests/multiscene_tests/test_misc.py
imports: import unittest
  from unittest import mock
  import pytest
  import xarray
  from satpy import DataQuery
  from satpy.tests.multiscene_tests.test_utils import _create_test_area, _create_test_dataset, _create_test_scenes
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestMultiSceneGrouping obj's underlying member method code with example usage: obj.test_fails_to_add_multiple_datasets_from_the_same_scene_to_a_group(multi_scene) without return types