mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 12:48:25 -04:00
broadcast-areas: use area ids in tests
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
@@ -89,10 +89,18 @@ def test_get_names_of_areas():
|
||||
|
||||
def test_get_areas_accepts_lists():
|
||||
areas_from_list = broadcast_area_libraries.get_areas(
|
||||
['wales', 'vale-of-glamorgan', 'england', 'essex']
|
||||
[
|
||||
'countries-W92000004',
|
||||
'counties-and-unitary-authorities-in-england-and-wales-W06000014',
|
||||
'countries-E92000001',
|
||||
'counties-and-unitary-authorities-in-england-and-wales-E10000012',
|
||||
]
|
||||
)
|
||||
areas_from_args = broadcast_area_libraries.get_areas(
|
||||
'wales', 'vale-of-glamorgan', 'england', 'essex',
|
||||
'countries-W92000004',
|
||||
'counties-and-unitary-authorities-in-england-and-wales-W06000014',
|
||||
'countries-E92000001',
|
||||
'counties-and-unitary-authorities-in-england-and-wales-E10000012',
|
||||
)
|
||||
assert areas_from_args == areas_from_list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user