def test_cusip_from_isin_country_error(): with pytest.raises(CountryCodeError): assert cusip_from_isin('ES0109067019')
def test_cusip_from_isin_validation_error(): with pytest.raises(IdError): assert cusip_from_isin('USROUTE66')
def test_cusip_from_isin(input, expected): assert cusip_from_isin(input) == expected