class_docstr: Test the interactions between DataIDs and DataQuerys.
class_docstr_tok: ["Test","the","interactions","between","DataIDs","and","DataQuerys","."]
docstr: Check did filtering.
docstr_tok: ["Check","did","filtering","."]
code: def test_id_filtering(self):
      """Check did filtering."""
      dq = DataQuery(modifiers=tuple(), name="cheese_shops")
      did = DataID(self.default_id_keys_config, name="cheese_shops")
      did2 = DataID(self.default_id_keys_config, name="ni")
      res = dq.filter_dataids([did2, did])
      assert len(res) == 1
      assert res[0] == did
  
      dataid_container = [
          DataID(
              self.default_id_keys_config,
              name="ds1",
              resolution=250,
              calibration="reflectance",
              modifiers=tuple(),
          )
      ]
      dq = DataQuery(wavelength=0.22, modifiers=tuple())
      assert len(dq.filter_dataids(dataid_container)) == 0
      dataid_container = [
          DataID(minimal_default_keys_config, name="natural_color")
      ]
      dq = DataQuery(name="natural_color", resolution=250)
      assert len(dq.filter_dataids(dataid_container)) == 1
  
      dq = make_dsq(wavelength=0.22, modifiers=("mod1",))
      did = make_cid(name="static_image")
      assert len(dq.filter_dataids([did])) == 0
  
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 3 for calling the TestIDQueryInteractions obj's underlying member method code with example usage: obj.test_id_filtering() without return types