class_docstr: Test VIIRS SDR Reader with a file that has truncated granules.
class_docstr_tok: ["Test","VIIRS","SDR","Reader","with","a","file","that","has","truncated","granules","."]
docstr: Test loading a single truncated band.
code: def test_load_truncated_band(self):
      """Test loading a single truncated band."""
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      loadables = r.select_files_from_pathnames(
          [
              "SVI01_npp_d20120225_t1801245_e1802487_b01708_c20120226002130255476_noaa_ops.h5",
          ]
      )
      r.create_filehandlers(loadables)
      ds = r.load(["I01"])
      assert len(ds) == 1
      i01_data = ds["I01"].compute()
      expected_rows = (
          sum(FakeShortHDF5FileHandlerAggr._num_scans_per_gran)
          * DEFAULT_FILE_SHAPE[0]
      )
      assert i01_data.shape == (expected_rows, 300)
  
imports: import os
  import unittest
  from contextlib import contextmanager
  from unittest import mock
  import numpy
  import pytest
  from satpy.readers.viirs_atms_sdr_base import DATASET_KEYS
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 3 for calling the TestShortAggrVIIRSSDRReader obj's underlying member method code with example usage: obj.test_load_truncated_band() without return types