def METHOD_NAME():
    """Tests that an exception is raised if sp>len(y)."""
    with pytest.raises(ValueError) as ex:
        transformer = STLBootstrapTransformer(sp=12)
        transformer.fit(y.iloc[1:9])
        msg = "STLBootstrapTransformer requires that sp is greater than the length of X"
        assert msg == ex.value