diff --git a/taxcalc/tests/test_calculate.py b/taxcalc/tests/test_calculate.py index 3d44adc26..ec67982db 100644 --- a/taxcalc/tests/test_calculate.py +++ b/taxcalc/tests/test_calculate.py @@ -298,6 +298,37 @@ def test_calculate_mtr(): assert np.array_equal(mtr_FICA, mtr_IIT) == False +def test_ID_hc_vs_surtax(): + policy1 = Policy() + puf1 = Records(TAX_DTA, weights=WEIGHTS, start_year=2009) + calc1 = Calculator(policy=policy1, records=puf1) + + policy2 = Policy() + puf2 = Records(TAX_DTA, weights=WEIGHTS, start_year=2009) + calc2 = Calculator(policy=policy2, records=puf2) + + reform1 = {2013: {'_ID_Medical_HC': [1], + '_ID_StateLocalTax_HC': [1], + '_ID_RealEstate_HC': [1], + '_ID_Casualty_HC': [1], + '_ID_Miscellaneous_HC': [1], + '_ID_InterestPaid_HC': [1], + '_ID_Charity_HC': [1] + } + } + reform2 = {2013: {'_ID_BenefitSurtax_crt': [0] + } + } + + policy1.implement_reform(reform1) + policy2.implement_reform(reform2) + + calc1.calc_all() + calc2.calc_all() + + assert_array_equal(calc1.records._combined, calc2.records._combined) + + def test_Calculator_create_difference_table(): # create current-law Policy object and use to create Calculator calc1 policy1 = Policy()