class_docstr: Test the SeviriL2GribFileHandler reader.
docstr: Set up the test by creating a mocked eccodes library.
docstr_tok: ["Set","up","the","test","by","creating","a","mocked","eccodes","library","."]
code: def setUp(self, ec_):
      """Set up the test by creating a mocked eccodes library."""
      fake_gid_generator = (i for i in FAKE_GID)
      ec_.codes_grib_new_from_file.side_effect = lambda fh: next(
          fake_gid_generator
      )
      ec_.codes_get.side_effect = lambda gid, key: FAKE_MESSAGE[key]
      ec_.codes_get_values.return_value = np.ones(1000 * 1200)
      self.ec_ = ec_
  
file_path: satpy/satpy/tests/reader_tests/test_seviri_l2_grib.py
imports: import datetime
  import sys
  import unittest
  from unittest import mock
  import numpy
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the Test_SeviriL2GribFileHandler obj's underlying member method code with example usage: obj.setUp(ec_) without return types