class_docstr: Test case for data queries.
class_docstr_tok: ["Test","case","for","data","queries","."]
docstr: Test that modifications are popped correctly.
docstr_tok: ["Test","that","modifications","are","popped","correctly","."]
code: def test_create_less_modified_query(self):
      """Test that modifications are popped correctly."""
      from satpy.dataset import DataQuery
  
      d1 = DataQuery(name="a", wavelength=0.2, modifiers=("hej",))
      d2 = DataQuery(name="a", wavelength=0.2, modifiers=tuple())
  
      assert not d1.create_less_modified_query()["modifiers"]
      assert not d2.create_less_modified_query()["modifiers"]
  
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 TestDataQuery obj's underlying member method code with example usage: obj.test_create_less_modified_query() without return types