How to use the schwifty.BIC.from_bank_code function in schwifty

To help you get started, we’ve selected a few schwifty examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mdomke / schwifty / tests / test_bic.py View on Github external
def test_bic_is_from_primary_bank_code():
    bic = BIC.from_bank_code("DE", "20070024")
    assert bic.compact == "DEUTDEDBHAM"
github mdomke / schwifty / tests / test_bic.py View on Github external
def test_bic_from_unknown_bank_code():
    with pytest.raises(ValueError):
        BIC.from_bank_code("PO", "12345678")
github mdomke / schwifty / tests / test_bic.py View on Github external
def test_bic_from_bank_code():
    bic = BIC.from_bank_code("DE", "43060967")
    assert bic.compact == "GENODEM1GLS"