Exemplo n.º 1
0
def test_bic_from_unknown_bank_code():
    with pytest.raises(exceptions.InvalidBankCode):
        BIC.from_bank_code("PO", "12345678")
Exemplo n.º 2
0
def test_bic_is_from_primary_bank_code():
    bic = BIC.from_bank_code("DE", "20070024")
    assert bic.compact == "DEUTDEDBHAM"
Exemplo n.º 3
0
def test_bic_is_from_primary_bank_code():
    bic = BIC.from_bank_code('DE', '20070024')
    assert bic.compact == 'DEUTDEDBHAM'
Exemplo n.º 4
0
def test_bic_from_bank_code():
    bic = BIC.from_bank_code("DE", "43060967")
    assert bic.compact == "GENODEM1GLS"
Exemplo n.º 5
0
def test_bic_from_bank_code():
    bic = BIC.from_bank_code('DE', '43060967')
    assert bic.compact == 'GENODEM1GLS'
Exemplo n.º 6
0
def test_bic_from_unknown_bank_code():
    with pytest.raises(ValueError):
        BIC.from_bank_code('PO', '12345678')
Exemplo n.º 7
0
def test_bic_from_unknown_bank_code():
    with pytest.raises(ValueError):
        BIC.from_bank_code("PO", "12345678")
Exemplo n.º 8
0
def test_bic_from_unknown_bank_code():
    assert not BIC.from_bank_code('PO', '12345678')
Exemplo n.º 9
0
def test_bic_is_from_primary_bank_code():
    bic = BIC.from_bank_code('DE', '20070024')
    assert bic.compact == 'DEUTDEDBHAM'
Exemplo n.º 10
0
def test_bic_from_unknown_bank_code():
    with pytest.raises(ValueError):
        BIC.from_bank_code('PO', '12345678')
Exemplo n.º 11
0
def test_bic_from_bank_code():
    bic = BIC.from_bank_code('DE', '43060967')
    assert bic.compact == 'GENODEM1GLS'