class_docstr: Unit tests for calibration.
class_docstr_tok: ["Unit","tests","for","calibration","."]
docstr: Test the masking of bad quality scan lines.
docstr_tok: ["Test","the","masking","of","bad","quality","scan","lines","."]
code: def test_mask_bad_quality(self, file_handler):
      """Test the masking of bad quality scan lines."""
      channel = "VIS006"
      expected = self._get_expected(
          channel=channel,
          calibration="radiance",
          calib_mode="NOMINAL",
          use_ext_coefs=False,
      )
  
      fh = file_handler
  
      res = fh._mask_bad_quality(expected)
      new_data = np.zeros_like(expected.data).astype("float32")
      new_data[:, :] = np.nan
      expected = expected.copy(data=new_data)
      xr.testing.assert_equal(res, expected)
  
imports: import unittest
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from numpy import testing
  from pyproj import CRS
  import satpy.tests.reader_tests.test_seviri_l1b_hrit_setup
  from satpy.readers.seviri_l1b_hrit import HRITMSGEpilogueFileHandler, HRITMSGFileHandler, HRITMSGPrologueFileHandler
  from satpy.tests.reader_tests.test_seviri_base import ORBIT_POLYNOMIALS_INVALID
  from satpy.tests.reader_tests.test_seviri_l1b_calibration import TestFileHandlerCalibrationBase
  from satpy.tests.utils import assert_attrs_equal, make_dataid
label_desc: Use image node_id 3 for calling the TestHRITMSGCalibration obj's underlying member method code with example usage: obj.test_mask_bad_quality(file_handler) without return types