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.assertRaisesRegexp(CoordinateNotFoundError, msg): result.coord(self.perc_coord)
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)