Example #1
0
def test_update_after_use():
    """
    Test of improper update after Growfactors object has been used.
    """
    gfo = Growfactors()
    gfo.price_inflation_rates(gfo.first_year, gfo.last_year)
    with pytest.raises(ValueError):
        gfo.update('AWAGE', 2013, 0.01)
Example #2
0
def test_update_after_use():
    gf = Growfactors()
    pir = gf.price_inflation_rates(gf.first_year, gf.last_year)
    with pytest.raises(ValueError):
        gf.update('AWAGE', 2013, 0.01)