class_docstr: Test HY2 Scatterometer L2B H5 Reader.
docstr: Test loading data.
docstr_tok: ["Test","loading","data","."]
code: def test_reading_attrs_nsoas(self):
      """Test loading data."""
      from satpy.readers import load_reader
  
      filenames = [
          "H2B_OPER_SCA_L2B_OR_20210803T100304_20210803T104601_13905_pwp_250_07_owv.h5",
      ]
  
      reader = load_reader(self.reader_configs)
      files = reader.select_files_from_pathnames(filenames)
      reader.create_filehandlers(files)
      # Make sure we have some files
      res = reader.load(["wvc_lon"])
      with pytest.raises(KeyError):
          assert res["wvc_lon"].attrs["L2B_Number_WVC_cells"] == 10
      assert res["wvc_lon"].attrs["L2B_Expected_WVC_Cells"] == 10
  
imports: import os
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 9 for calling the TestHY2SCATL2BH5Reader obj's underlying member method code with example usage: obj.test_reading_attrs_nsoas() without return types