class_docstr: Test getting the earth mask.
class_docstr_tok: ["Test","getting","the","earth","mask","."]
docstr: Test getting the earth mask.
docstr_tok: ["Test","getting","the","earth","mask","."]
code: def test_get_earth_mask(self):
      """Test getting the earth mask."""
      first_earth_pixels = np.array([-1, 1, 0, -1])
      last_earth_pixels = np.array([-1, 3, 2, -1])
      edges = first_earth_pixels, last_earth_pixels
      mask_exp = np.array(
          [[0, 0, 0, 0], [0, 1, 1, 1], [1, 1, 1, 0], [0, 0, 0, 0]]
      )
      mask = vissr.get_earth_mask(mask_exp.shape, edges)
      np.testing.assert_equal(mask, mask_exp)
  
imports: import datetime
  import gzip
  import fsspec
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  import satpy.tests.reader_tests.gms.test_gms5_vissr_data
  from satpy.readers import FSFile
  from satpy.tests.reader_tests.utils import get_jit_methods, skip_numba_unstable_if_missing
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestEarthMask obj's underlying member method code with example usage: obj.test_get_earth_mask() without return types