class_docstr: Test fake binary header defined at top of module
class_docstr_tok: ["Test","fake","binary","header","defined","at","top","of","module"]
code: def test_log_checks(self):
      # Test logging, fixing, errors for header checking
      # This is specific to the particular header type. Here we use the
      # pretent header defined at the top of this file
      HC = self.header_class
      hdr = HC()
      hdr["an_integer"] = 2  # severity 40
      fhdr, message, raiser = self.log_chk(hdr, 40)
      return
      assert fhdr["an_integer"] == 1
      assert message == "an_integer should be 1; set an_integer to 1"
      pytest.raises(*raiser)
      # lower case string
      hdr = HC()
      hdr["a_str"] = "Hello"  # severity = 20
      fhdr, message, raiser = self.log_chk(hdr, 20)
      assert (
          message
          == "a_str should be lower case; set a_str to lower case"
      )
      pytest.raises(*raiser)
  
imports: import logging
  from io import BytesIO, StringIO
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..None import imageglobals
  from ..batteryrunners import Report
  from ..casting import sctypes
  from ..spatialimages import HeaderDataError
  from ..volumeutils import Recoder, native_code, swapped_code
  from ..wrapstruct import LabeledWrapStruct, WrapStruct, WrapStructError
label_desc: Use image node_id 8 for calling the TestMyWrapStruct obj's underlying member method code with example usage: obj.test_log_checks() without return types