Example #1
0
 def test_landmaskcorrection(self):
     """Test landmask correction. Note that the name land_binary_mask is
     enforced to reflect the change that has been made."""
     result = CorrectLand().process(self.landmask)
     self.assertEqual(result.name(), "land_binary_mask")
     self.assertArrayEqual(result.data, self.expected_mask)
     self.assertTrue(result.dtype == np.int8)
 def test_landmaskcorrection(self):
     """Test landmask correction"""
     result = CorrectLand().process(self.landmask)
     self.assertEqual(result.name(), 'test land')
     self.assertArrayEqual(result.data, self.expected_mask)