def test_gold_prices_1950_1999(): data = '\n'.join(gold_prices.strip().splitlines()[:10]) actual = years_gold_value_decreased(data) expected = (1981, 1979) assert actual == expected
def test_gold_prices_till_1980_1989(): data = '\n'.join(gold_prices.strip().splitlines()[-8:-6]) actual = years_gold_value_decreased(data) expected = (1981, 1987) assert actual == expected