def test_error_when_from_low_to_high(self):
        """
        Tests if the transformer raises an error when the user asks for a transform in the wrong direction.
        """
        # wrong direction : low to high freq
        midas_1 = MIDAS(low_freq=freqs["ME"])
        with pytest.raises(ValueError):
            midas_1.fit_transform(self.quarterly_ts)

        # transform to same index requested
        midas_2 = MIDAS(low_freq=freqs["QE"])
        with pytest.raises(ValueError):
            midas_2.fit_transform(self.quarterly_ts)

        Tests if the transformer raises an error when the user asks for a transform in the wrong direction.
        
darts/tests/dataprocessing/transformers/test_midas.py