diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb..9ebc69bd3 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + added: + - Test cases for TV Licence. \ No newline at end of file diff --git a/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv-licence/tv_licence.yaml b/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv-licence/tv_licence.yaml new file mode 100644 index 000000000..99c9e897e --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv-licence/tv_licence.yaml @@ -0,0 +1,20 @@ +- name: TV Licence full price - ineligible for aged or blind discount. + period: 2023 + input: + tv_licence_discount: 0 + output: + tv_licence: 159.00 + +- name: TV Licence half price - eligible for blind discount but not aged. + period: 2023 + input: + tv_licence_discount: 0.5 + output: + tv_licence: 79.50 + +- name: Free TV Licence - eligible for aged discount. + period: 2023 + input: + tv_licence_discount: 1 + output: + tv_licence: 0 \ No newline at end of file diff --git a/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv_licence_discount.yaml b/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv_licence_discount.yaml new file mode 100644 index 000000000..35a1b110b --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/dcms/bbc/tv_licence_discount.yaml @@ -0,0 +1,44 @@ +- name: Ineligible for any discount. + period: 2023 + input: + age: 74 + pension_credit: 0 + is_blind: false + output: + tv_licence_discount: 0 + +- name: Eligible for aged discount only. + period: 2023 + input: + age: 75 + pension_credit: 1 + is_blind: false + output: + tv_licence_discount: 1 + +- name: Aged over 75 but ineligible for aged discount. + period: 2023 + input: + age: 75 + pension_credit: 0 + is_blind: false + output: + tv_licence_discount: 0 + +- name: Eligible for blind discount only. + period: 2023 + input: + age: 74 + pension_credit: 0 + is_blind: true + output: + tv_licence_discount: 0.5 + +- name: Eligible for both aged and blind discounts. + period: 2023 + input: + age: 75 + pension_credit: 1 + is_blind: true + output: + tv_licence_discount: 1 \ No newline at end of file