示例#1
0
def test_cusip_from_isin_country_error():
    with pytest.raises(CountryCodeError):
        assert cusip_from_isin('ES0109067019')
示例#2
0
def test_cusip_from_isin_validation_error():
    with pytest.raises(IdError):
        assert cusip_from_isin('USROUTE66')
示例#3
0
def test_cusip_from_isin(input, expected):
    assert cusip_from_isin(input) == expected