class_docstr: Unit tests for FIDUCEO MVIRI file handlers.
class_docstr_tok: ["Unit","tests","for","FIDUCEO","MVIRI","file","handlers","."]
docstr: Test calibration exceptions.
docstr_tok: ["Test","calibration","exceptions","."]
code: def test_calib_exceptions(self, file_handler):
      """Test calibration exceptions."""
      with pytest.raises(KeyError):
          file_handler.get_dataset(
              make_dataid(
                  name="solar_zenith_angle", calibration="counts"
              ),
              {},
          )
      with pytest.raises(KeyError):
          file_handler.get_dataset(
              make_dataid(
                  name="VIS",
                  resolution=2250,
                  calibration="brightness_temperature",
              ),
              {},
          )
      with pytest.raises(KeyError):
          file_handler.get_dataset(
              make_dataid(
                  name="IR", resolution=4500, calibration="reflectance"
              ),
              {},
          )
      if isinstance(file_handler, FiduceoMviriEasyFcdrFileHandler):
          with pytest.raises(KeyError):
              file_handler.get_dataset(
                  {"name": "VIS", "calibration": "counts"}, {}
              )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyproj import CRS
  from pyresample.geometry import AreaDefinition
  from satpy.readers.mviri_l1b_fiduceo_nc import ALTITUDE, EQUATOR_RADIUS, POLE_RADIUS, DatasetWrapper, FiduceoMviriEasyFcdrFileHandler, FiduceoMviriFullFcdrFileHandler
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 7 for calling the TestFiduceoMviriFileHandlers obj's underlying member method code with example usage: obj.test_calib_exceptions(file_handler) without return types