Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_generate_iban_invalid(country_code, bank_code, account_code):
with pytest.raises(ValueError):
IBAN.generate(country_code, bank_code, account_code)
def test_generate_iban(components, compact):
iban = IBAN.generate(*components)
assert iban.compact == compact