예제 #1
0
 def test_updated_metadata(self):
     """Test that the metadata is set as expected """
     plugin = WindGustDiagnostic(50.0, 80.0)
     result = plugin.update_metadata_after_max(self.cube, self.perc_coord)
     msg = 'Expected to find exactly 1 .* coordinate, but found none.'
     with self.assertRaisesRegex(CoordinateNotFoundError, msg):
         result.coord(self.perc_coord)
예제 #2
0
 def test_basic(self):
     """Test that the function returns a Cube. """
     plugin = WindGustDiagnostic(50.0, 95.0)
     result = plugin.update_metadata_after_max(self.cube, self.perc_coord)
     self.assertIsInstance(result, Cube)