class_docstr: Test SEVIRI base.
docstr: Test the error handling for the horizontal hrv padding.
docstr_tok: ["Test","the","error","handling","for","the","horizontal","hrv","padding","."]
code: def test_pad_data_horizontally_bad_shape(self):
      """Test the error handling for the horizontal hrv padding."""
      data = xr.DataArray(data=np.zeros((1, 10)), dims=("y", "x"))
      east_bound = 5
      west_bound = 10
      final_size = (1, 20)
      with pytest.raises(IndexError):
          pad_data_horizontally(
              data, final_size, east_bound, west_bound
          )
  
imports: import unittest
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.readers.seviri_base import MEIRINK_COEFS, MEIRINK_EPOCH, NoValidOrbitParams, OrbitPolynomial, OrbitPolynomialFinder, SEVIRICalibrationHandler, chebyshev, dec10216, get_cds_time, get_padding_area, get_satpos, pad_data_horizontally, pad_data_vertically, round_nom_time
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 6 for calling the SeviriBaseTest obj's underlying member method code with example usage: obj.test_pad_data_horizontally_bad_shape() without return types