Exemplo n.º 1
0
 def test_get_dict(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(250000, "013", prev_home)
     tax_dict = tax_calc.get_dict()
     field_amount = {
         "just_value": 250000,
         "soh_benefit": 128083,
         "assessed_value": 121917,
         "exemption_value": 25000,
         "school_taxable": 96917,
         "additional_exemption_value": 25000,
         "non_school_taxable": 71917,
         "school_millage_rate": decimal_set_places(D(0.00719700), ".00000001"),
         "school_tax_amount": decimal_set_places(D(697.51)),
         "non_school_millage_rate": decimal_set_places(D(0.01907310), ".00000001"),
         "non_school_tax_amount": decimal_set_places(D(1371.68)),
         "total_tax_amount": decimal_set_places(D(2069.19)),
     }
     for field, amount in field_amount.iteritems():
         self.assertEqual(tax_dict[field], amount)
Exemplo n.º 2
0
 def test_set_assessed_value_just_less_prev_just_assessed_just_diff_greater_500k(self):
     prev_home = TaxCalculatorAssessed(1000000, 425000, 25000, "402")
     tax_calc = TaxCalculatorPortability(900000, "013", prev_home)
     self.assertEqual(400000, tax_calc.get_assessed_value())
Exemplo n.º 3
0
 def test_total_tax_amount(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(250000, "013", prev_home)
     self.assertEqual(decimal_set_places(D(2069.19)), tax_calc.get_total_tax_amount())
Exemplo n.º 4
0
 def test_set_assessed_value_just_less_prev_just(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(250000, "013", prev_home)
     self.assertEqual(121917, tax_calc.get_assessed_value())
Exemplo n.º 5
0
 def test_set_assessed_value_just_greater_prev_just_soh_under_500k(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(300000, "013", prev_home)
     self.assertEqual(168679, tax_calc.get_assessed_value())
Exemplo n.º 6
0
 def test_set_additional_exemption_value_assessed_less_50k(self):
     prev_home = TaxCalculatorAssessed(400000, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(150000, "013", prev_home)
     self.assertEqual(0, tax_calc.get_additional_exemption_value())
Exemplo n.º 7
0
 def test_set_additional_exemption_value_assessed_greater_75k(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(300000, "013", prev_home)
     self.assertEqual(25000, tax_calc.get_additional_exemption_value())
Exemplo n.º 8
0
 def test_get_soh_benefit(self):
     prev_home = TaxCalculatorAssessed(256321, 125000, 25000, "402")
     tax_calc = TaxCalculatorPortability(300000, "013", prev_home)
     self.assertEqual(131321, tax_calc.get_soh_benefit())