def test_bic(): bic = BIC("GENODEM1GLS") assert bic.formatted == "GENO DE M1 GLS" assert bic.validate()
def test_bic_allow_invalid(): bic = BIC("GENODXM1GLS", allow_invalid=True) assert bic assert bic.country_code == "DX" with pytest.raises(exceptions.InvalidCountryCode): bic.validate()
def test_bic(): bic = BIC('GENODEM1GLS') assert bic.formatted == 'GENO DE M1 GLS' assert bic.validate()
def test_bic_allow_invalid(): bic = BIC('GENODXM1GLS', allow_invalid=True) assert bic assert bic.country_code == 'DX' with pytest.raises(ValueError): bic.validate()