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