class_docstr: Test NetCDF4 File Handler Utility class.
class_docstr_tok: ["Test","NetCDF4","File","Handler","Utility","class","."]
docstr: Test that composing for listed variables is performed.
docstr_tok: ["Test","that","composing","for","listed","variables","is","performed","."]
code: def test_listed_variables_with_composing(self):
      """Test that composing for listed variables is performed."""
      from satpy.readers.netcdf_utils import NetCDF4FileHandler
  
      filetype_info = {
          "required_netcdf_variables": [
              "test_group/{some_parameter}/attr/test_attr_str",
              "test_group/attr/test_attr_str",
          ],
          "variable_name_replacements": {
              "some_parameter": [
                  "ds1_f",
                  "ds1_i",
              ],
              "another_parameter": ["not_used"],
          },
      }
      file_handler = NetCDF4FileHandler("test.nc", {}, filetype_info)
      assert len(file_handler.file_content) == 3
      assert (
          "test_group/ds1_f/attr/test_attr_str"
          in file_handler.file_content
      )
      assert (
          "test_group/ds1_i/attr/test_attr_str"
          in file_handler.file_content
      )
      assert not any(
          "not_used" in var for var in file_handler.file_content
      )
      assert not any(
          "some_parameter" in var for var in file_handler.file_content
      )
      assert not any(
          "another_parameter" in var
          for var in file_handler.file_content
      )
      assert (
          "test_group/attr/test_attr_str" in file_handler.file_content
      )
  
imports: import os
  import unittest
  import numpy
  import pytest
label_desc: Use image node_id 5 for calling the TestNetCDF4FileHandler obj's underlying member method code with example usage: obj.test_listed_variables_with_composing() without return types