class_docstr: Test the AtmsL1bNCFileHandler reader.
class_docstr_tok: ["Test","the","AtmsL1bNCFileHandler","reader","."]
docstr: Test merge attributes.
docstr_tok: ["Test","merge","attributes","."]
code: def test_merge_attributes(self, reader, param, expect):
      """Test merge attributes."""
      data = xr.DataArray(
          np.ones(10),
          dims=("y"),
          attrs={"type": "test_data"},
      )
      dataset_info = {"name": "test"}
      data = reader._merge_attributes(data, dataset_info)
      assert data.attrs[param] == expect
  
file_path: satpy/satpy/tests/reader_tests/test_atms_l1b_nc.py
imports: from datetime import datetime
  import numpy
  import pytest
  import xarray
  from satpy.readers.atms_l1b_nc import AtmsL1bNCFileHandler
label_desc: Use image node_id 9 for calling the TestAtsmsL1bNCFileHandler obj's underlying member method code with example usage: obj.test_merge_attributes(reader, param, expect) without return types