def METHOD_NAME(dataframe):
    """Test inflation calculation fails with year outside valid range."""
    with pytest.raises(ValueError):
        assert dataframe.inflate_currency(
            "a", country="USA", currency_year=1950, to_year=2018
        )