class_docstr: Test VIIRS EDR Flood Reader.
class_docstr_tok: ["Test","VIIRS","EDR","Flood","Reader","."]
docstr: Test loading all datasets from a full swath file.
docstr_tok: ["Test","loading","all","datasets","from","a","full","swath","file","."]
code: def test_load_dataset(self):
      """Test loading all datasets from a full swath file."""
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      loadables = r.select_files_from_pathnames(
          [
              "WATER_VIIRS_Prj_SVI_npp_d20180824_t1828213_e1839433_b35361_cspp_dev_10_300_01.hdf"
          ]
      )
      r.create_filehandlers(loadables)
      datasets = r.load(["WaterDetection"])
      assert len(datasets) == 1
      for v in datasets.values():
          assert v.attrs["units"] == "none"
  
file_path: satpy/satpy/tests/reader_tests/test_viirs_edr_flood.py
imports: import os
  import unittest
  from unittest import mock
  import numpy
  from satpy.tests.reader_tests.test_hdf4_utils import FakeHDF4FileHandler
label_desc: Use image node_id 4 for calling the TestVIIRSEDRFloodReader obj's underlying member method code with example usage: obj.test_load_dataset() without return types