How to use the schwifty.IBAN.generate 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_iban.py View on Github external
def test_generate_iban_invalid(country_code, bank_code, account_code):
    with pytest.raises(ValueError):
        IBAN.generate(country_code, bank_code, account_code)
github mdomke / schwifty / tests / test_iban.py View on Github external
def test_generate_iban(components, compact):
    iban = IBAN.generate(*components)
    assert iban.compact == compact