"""Test country util.""" import pytest from ledger.constants.error import ERROR_UNKNOWN_COUNTRY from ledger.utils.country import validate_country_code def test_validate_country_code_error(): """Test validate_country_code for an invalid country.""" with pytest.raises(Exception, match=ERROR_UNKNOWN_COUNTRY.format(code='test')): validate_country_code('test')