class_docstr: Test GRIB Reader.
class_docstr_tok: ["Test","GRIB","Reader","."]
docstr: Check that data is flipped if the jScansPositively is present.
docstr_tok: ["Check","that","data","is","flipped","if","the","jScansPositively","is","present","."]
code: def test_jscanspositively(
      self, proj_params, lon_corners, lat_corners
  ):
      """Check that data is flipped if the jScansPositively is present."""
      fake_pygrib = self._get_fake_pygrib(
          proj_params, lon_corners, lat_corners
      )
  
      # This has no jScansPositively
      query_not_contains = DataQuery(
          name="t", level=100, modifiers=tuple()
      )
      # This contains jScansPositively
      query_contains = DataQuery(name="t", level=200, modifiers=tuple())
      dataset = self._get_test_datasets(
          [query_contains, query_not_contains], fake_pygrib
      )
  
      np.testing.assert_allclose(
          fake_gribdata(), dataset[query_not_contains].values
      )
      np.testing.assert_allclose(
          fake_gribdata(), dataset[query_contains].values[::-1]
      )
  
imports: import os
  import sys
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from satpy.dataset import DataQuery
label_desc: Use image node_id 10 for calling the TestGRIBReader obj's underlying member method code with example usage: obj.test_jscanspositively(proj_params, lon_corners, lat_corners) without return types