Skip to content

Commit

Permalink
Add test for get_all_contacts()
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Jan 3, 2024
1 parent 804c45f commit 225a15d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_iso3_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 225a15d

Please sign in to comment.