class_docstr: Test the nwcsaf msg reader.
class_docstr_tok: ["Test","the","nwcsaf","msg","reader","."]
docstr: Set up the tests.
docstr_tok: ["Set","up","the","tests","."]
code: def setUp(self):
      """Set up the tests."""
      self.filename_ct = os.path.join(
          tempfile.gettempdir(),
          "SAFNWC_MSG3_CT___201611090800_MSG-N_______.PLAX.CTTH.0.h5",
      )
  
      self.filename_ctth = os.path.join(
          tempfile.gettempdir(),
          "SAFNWC_MSG3_CTTH_201611090800_MSG-N_______.PLAX.CTTH.0.h5",
      )
  
      def cut_h5_object_ref(root, attr):
          if isinstance(attr, str) and attr.startswith(
              "<HDF5 object reference>"
          ):
              return root[attr[24:]].ref
          return attr
  
      h5f = h5py.File(self.filename_ct, mode="w")
      fill_h5(h5f, fake_ct, attr_processor=cut_h5_object_ref)
      for attr, val in fake_ct["attrs"].items():
          h5f.attrs[attr] = val
      h5f.close()
  
      h5f = h5py.File(self.filename_ctth, mode="w")
      fill_h5(h5f, fake_ctth, attr_processor=cut_h5_object_ref)
      for attr, val in fake_ctth["attrs"].items():
          h5f.attrs[attr] = val
      h5f.close()
  
file_path: satpy/satpy/tests/reader_tests/test_nwcsaf_msg.py
imports: import os
  import tempfile
  import unittest
  from collections import OrderedDict
  import h5py
  import numpy
  import pytest
  from satpy.tests.reader_tests.utils import fill_h5
label_desc: Use image node_id 1 for calling the TestH5NWCSAF obj's underlying member method code with example usage: obj.setUp() and returns: attr, root