def test_strided_moving_window_window_len_too_large_error(self):
        """
        Checks that appropriate error is thrown when `window_len`
        is set to a value larger than `x.shape[axis]`.
        """
        x = np.arange(1)
        with pytest.raises(ValueError) as err:
            strided_moving_window(x, window_len=2, stride=1)
        assert ("`window_len` must be less than or equal to x.shape[axis].") == str(
            err.value
        )

        Checks that appropriate error is thrown when `window_len`
        is set to a value larger than `x.shape[axis]`.
        
darts/tests/utils/tabularization/test_strided_moving_window.py