Skip to content

Commit

Permalink
Correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 29, 2021
1 parent fa9b616 commit 4fcc5ca
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions tests/baseline/finance/benefit/family/housing_benefit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,46 @@
input:
age: 26
weekly_hours: 31
employment_income: 2000
employment_income: 0
tenure_type: RENT_FROM_COUNCIL
claims_HB: true
claims_WTC: true
rent: 88 * 52
output:
working_tax_credit: 2885
WTC_basic_element: 3040
WTC_worker_element: 825
working_tax_credit: 3040 + 825
housing_benefit: 88 * 52
- name: Check withdrawal rate is 65%
- name: Check no change up until the phase-out point
period: 2021
absolute_error_margin: 5
input:
age: 26
weekly_hours: 31
employment_income: 2520
employment_income: 3801 - (3865 - 52 * (5 + 37.1))
tenure_type: RENT_FROM_COUNCIL
claims_HB: true
claims_WTC: true
rent: 88 * 52
output:
working_tax_credit: 2885
housing_benefit: 88 * 52
WTC_basic_element: 3040
WTC_worker_element: 825
working_tax_credit: 3865
housing_benefit_applicable_income: 3801
housing_benefit: 88 * 52
- name: Check phase-out rate is 65%
period: 2021
absolute_error_margin: 5
input:
age: 26
weekly_hours: 31
employment_income: 3801 - (3865 - 52 * (5 + 37.1)) + 100
tenure_type: RENT_FROM_COUNCIL
claims_HB: true
claims_WTC: true
rent: 88 * 52
output:
WTC_basic_element: 3040
WTC_worker_element: 825
working_tax_credit: 3865
housing_benefit: 88 * 52 - 65

0 comments on commit 4fcc5ca

Please sign in to comment.