class_docstr: Test DataID object creation and other methods.
class_docstr_tok: ["Test","DataID","object","creation","and","other","methods","."]
docstr: Test basic ways of creating a DataID.
docstr_tok: ["Test","basic","ways","of","creating","a","DataID","."]
code: def test_basic_init(self):
      """Test basic ways of creating a DataID."""
      from satpy.dataset.dataid import DataID
      from satpy.dataset.dataid import default_id_keys_config as dikc
      from satpy.dataset.dataid import (
          minimal_default_keys_config as mdkc,
      )
  
      did = DataID(dikc, name="a")
      assert did["name"] == "a"
      assert did["modifiers"] == tuple()
      DataID(dikc, name="a", wavelength=0.86)
      DataID(dikc, name="a", resolution=1000)
      DataID(dikc, name="a", calibration="radiance")
      DataID(
          dikc,
          name="a",
          wavelength=0.86,
          resolution=250,
          calibration="radiance",
      )
      DataID(
          dikc,
          name="a",
          wavelength=0.86,
          resolution=250,
          calibration="radiance",
          modifiers=("sunz_corrected",),
      )
      with pytest.raises(
          ValueError, match="Required field name missing."
      ):
          DataID(dikc, wavelength=0.86)
      did = DataID(mdkc, name="comp24", resolution=500)
      assert did["resolution"] == 500
  
imports: import unittest
  from datetime import datetime
  import numpy
  import pytest
  from satpy.dataset.dataid import DataID, DataQuery, ModifierTuple, WavelengthRange, minimal_default_keys_config
  from satpy.readers.pmw_channels_definitions import FrequencyDoubleSideBand, FrequencyQuadrupleSideBand, FrequencyRange
  from satpy.tests.utils import make_cid, make_dataid, make_dsq
label_desc: Use image node_id 1 for calling the TestDataID obj's underlying member method code with example usage: obj.test_basic_init() without return types