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