class_docstr: Test Mimic Reader.
class_docstr_tok: ["Test","Mimic","Reader","."]
docstr: Load TPW mimic sensor grids.
docstr_tok: ["Load","TPW","mimic","sensor","grids","."]
code: def test_load_mimic_ubyte(self):
      """Load TPW mimic sensor grids."""
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      with mock.patch(
          "satpy.readers.mimic_TPW2_nc.netCDF4.Variable", xr.DataArray
      ):
          loadables = r.select_files_from_pathnames(
              [
                  "comp20190619.130000.nc",
              ]
          )
          r.create_filehandlers(loadables)
      ds = r.load(ubyte_variables)
      assert len(ds) == len(ubyte_variables)
      for d in ds.values():
          assert d.attrs["platform_shortname"] == "aggregated microwave"
          assert d.attrs["sensor"] == "mimic"
          assert "source_key" in d.attrs
          assert "area" in d.attrs
          assert d.attrs["area"] is not None
          assert d.dtype == np.uint8
  
file_path: satpy/satpy/tests/reader_tests/test_mimic_TPW2_lowres.py
imports: import itertools
  import os
  import unittest
  from datetime import datetime
  from unittest import mock
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 6 for calling the TestMimicTPW2Reader obj's underlying member method code with example usage: obj.test_load_mimic_ubyte() without return types