class_docstr: Test VIIRS L1B Reader.
class_docstr_tok: ["Test","VIIRS","L1B","Reader","."]
docstr: Test loading all DNB angle datasets.
docstr_tok: ["Test","loading","all","DNB","angle","datasets","."]
code: def test_load_dnb_angles(self):
      """Test loading all DNB angle datasets."""
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      loadables = r.select_files_from_pathnames(
          [
              "VL1BD_snpp_d20161130_t012400_c20161130054822.nc",
              "VGEOD_snpp_d20161130_t012400_c20161130054822.nc",
          ]
      )
      r.create_filehandlers(loadables)
      datasets = r.load(
          [
              "dnb_solar_zenith_angle",
              "dnb_solar_azimuth_angle",
              "dnb_satellite_zenith_angle",
              "dnb_satellite_azimuth_angle",
              "dnb_lunar_zenith_angle",
              "dnb_lunar_azimuth_angle",
          ]
      )
      assert len(datasets) == 6
      for v in datasets.values():
          assert v.attrs["units"] == "degrees"
          assert v.attrs["rows_per_scan"] == 2
          assert v.attrs["area"].lons.attrs["rows_per_scan"] == 2
          assert v.attrs["area"].lats.attrs["rows_per_scan"] == 2
          assert v.attrs["sensor"] == "viirs"
  
imports: import os
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
  from satpy.tests.utils import convert_file_content_to_data_array
label_desc: Use image node_id 10 for calling the TestVIIRSL1BReaderDay obj's underlying member method code with example usage: obj.test_load_dnb_angles() without return types