@@ -0,0 +1,1907 @@
+import pytest%0Aimport os%0Aimport ogusa%0Afrom ogusa import SS, TPI%0A%0ACUR_PATH = os.path.abspath(os.path.dirname(__file__))%0APUF_PATH = os.path.join(CUR_PATH, '../puf.csv')%0A%0Adef test_diff_start_year():%0A    from ogusa.scripts.execute import runner%0A    # Monkey patch enforcement flag since small data won't pass checks%0A    SS.ENFORCE_SOLUTION_CHECKS = False%0A    TPI.ENFORCE_SOLUTION_CHECKS = False%0A    output_base = %22./OUTPUT%22%0A    input_dir = %22./OUTPUT%22%0A    for year in range(2016, 2020):%0A        print('year = ', year)%0A        user_params = %7B'frisch':0.41, 'debt_ratio_ss':1.0,%0A                       'start_year': year%7D%0A        runner(output_base=output_base, baseline_dir=input_dir, test=True,%0A               time_path=True, baseline=True, age_specific=False,%0A               user_params=user_params, run_micro=True,%0A               small_open=False, budget_balance=False, data=PUF_PATH)%0A%0A#%0A# def test_get_micro_data_get_calculator():%0A#%0A#     reform = %7B%0A#     2017: %7B%0A#         '_II_rt1': %5B.09%5D,%0A#         '_II_rt2': %5B.135%5D,%0A#         '_II_rt3': %5B.225%5D,%0A#         '_II_rt4': %5B.252%5D,%0A#         '_II_rt5': %5B.297%5D,%0A#         '_II_rt6': %5B.315%5D,%0A#         '_II_rt7': %5B0.3564%5D,%0A#     %7D, %7D%0A#%0A#     calc = get_calculator(baseline=False, calculator_start_year=2017,%0A#                           reform=reform, data=TAXDATA,%0A#                           weights=WEIGHTS, records_start_year=2009)%0A#     assert calc.current_year == 2017%0A#%0A#     reform = %7B%0A#     2017: %7B%0A#         '_II_rt1': %5B.09%5D,%0A#         '_II_rt2': %5B.135%5D,%0A#         '_II_rt3': %5B.225%5D,%0A#         '_II_rt4': %5B.252%5D,%0A#         '_II_rt5': %5B.297%5D,%0A#         '_II_rt6': %5B.315%5D,%0A#         '_II_rt7': %5B0.3564%5D%0A#     %7D, %7D%0A#%0A#     calc2 = get_calculator(baseline=False, calculator_start_year=2017,%0A#                            reform=reform, data=TAXDATA,%0A#                            weights=WEIGHTS, records_start_year=2009)%0A#     assert calc2.current_year == 2017%0A

test for different start years