def test_get_total_millage_rate(self): millage = Millage() millage.set_millage_code("100") self.assertEqual(D(0.0227915), millage.get_total_millage_rate())
def test_get_short_non_school_millage_rate(self): millage = Millage() millage.set_millage_code("100") self.assertEqual(millage.get_short_non_school_millage_rate(), decimal_set_places(D(0.01559450), ".00000001"))
def test_get_school_millage_rate(self): millage = Millage() millage.set_millage_code("100") self.assertEqual(D(0.00719700), millage.get_school_millage_rate())
def test_get_non_school_millage_rate(self): millage = Millage() millage.set_millage_code("100") non_school = D(0.0227915) - D(0.00719700) self.assertEqual(non_school, millage.get_non_school_millage_rate())
def test_get_millage_area(self): millage = Millage() millage.set_millage_code("100") self.assertEqual("Unincorporated/Westside", millage.get_millage_area())
def test_get_all_areas_form_choices(self): all_areas = Millage.get_all_areas_form_choices() self.assertIn("Daytona Beach - 885", all_areas[2])
def test_millage_code(self): millage = Millage() millage.set_millage_code("100") self.assertEqual("100", millage.millage_code)