class_docstr: Test the filehandler.
class_docstr_tok: ["Test","the","filehandler","."]
docstr: Set up the test case.
docstr_tok: ["Set","up","the","test","case","."]
code: def setUp(self):
      """Set up the test case."""
      self._header = np.zeros(1, dtype=_HEADERTYPE)
      self._header["satid"][0] = 13
      self._header["radtempcnv"][0] = [
          [267194, -171669, 1002811],
          [930310, -59084, 1001600],
          [828600, -37854, 1001147],
      ]
      # first 3b is off, 3a is on
      self._header["inststat1"][0] = 0b1111011100000000
      # switch 3a off at position 1
      self._header["statchrecnb"][0] = 1
      # 3b is on, 3a is off
      self._header["inststat2"][0] = 0b1111101100000000
  
      self._data = np.zeros(3, dtype=_SCANTYPE)
      self._data["scnlinyr"][:] = 2020
      self._data["scnlindy"][:] = 8
      self._data["scnlintime"][0] = 30195225
      self._data["scnlintime"][1] = 30195389
      self._data["scnlintime"][2] = 30195556
      self._data["scnlinbit"][0] = -16383
      self._data["scnlinbit"][1] = -16383
      self._data["scnlinbit"][2] = -16384
      calvis = np.array(
          [
              [
                  [0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 0],
                  [543489984, -21941870, 1592440064, -545027008, 499],
              ],
              [
                  [0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 0],
                  [540780032, -22145690, 1584350080, -543935616, 500],
              ],
              [
                  [0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 0],
                  [257550000, -10449420, 1812019968, -785690304, 499],
              ],
          ]
      )
      self._data["calvis"][:] = calvis
      self._data["calir"] = [
          [
              [[0, -2675, 2655265], [0, 0, 0]],
              [[33605, -260786, 226818992], [0, 0, 0]],
              [[13869, -249508, 234624768], [0, 0, 0]],
          ],
          [
              [[0, -2675, 2655265], [0, 0, 0]],
              [[33609, -260810, 226837328], [0, 0, 0]],
              [[13870, -249520, 234638704], [0, 0, 0]],
          ],
          [
              [[0, 0, 0], [0, 0, 0]],
              [[33614, -260833, 226855664], [0, 0, 0]],
              [[13871, -249531, 234652640], [0, 0, 0]],
          ],
      ]
      self._data["hrpt"] = (
          np.ones_like(self._data["hrpt"])
          * (np.arange(2048) // 2)[np.newaxis, :, np.newaxis]
      )
  
      self.filename_info = {
          "platform_shortname": "metop03",
          "start_time": datetime.datetime(2020, 1, 8, 8, 19),
          "orbit_number": 6071,
      }
      self.filetype_info = {
          "file_reader": AVHRRAAPPL1BFile,
          "file_patterns": [
              "hrpt_{platform_shortname}_{start_time:%Y%m%d_%H%M}_{orbit_number:05d}.l1b"
          ],  # noqa
          "file_type": "avhrr_aapp_l1b",
      }
  
imports: import datetime
  import os
  import tempfile
  import unittest
  from contextlib import suppress
  from unittest import mock
  import numpy
  from satpy.readers.aapp_l1b import _HEADERTYPE, _SCANTYPE, AVHRRAAPPL1BFile
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestAAPPL1BAllChannelsPresent obj's underlying member method code with example usage: obj.setUp() without return types