From 225a15d350c7edc11a467c962aa389c88025283c Mon Sep 17 00:00:00 2001 From: Vincent Fazio Date: Wed, 3 Jan 2024 18:32:05 +1100 Subject: [PATCH] Add test for get_all_contacts() --- tests/test_iso3_parsing.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_iso3_parsing.py b/tests/test_iso3_parsing.py index 3bcb032d..0ada56e7 100644 --- a/tests/test_iso3_parsing.py +++ b/tests/test_iso3_parsing.py @@ -441,6 +441,15 @@ def test_identification_keywords(bmd): assert len(keyw[0].keywords) == 2 assert len(keyw) == 5 +def test_get_all_contacts(bmd): + """ Test get_all_contacts() + """ + conts = bmd.get_all_contacts() + assert(len(conts) == 3) + assert conts[0].role == 'pointOfContact' + assert conts[1].role == 'custodian' + assert conts[2].role == 'owner' + @pytest.fixture def amd():