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_bic_is_from_primary_bank_code():
bic = BIC.from_bank_code("DE", "20070024")
assert bic.compact == "DEUTDEDBHAM"
def test_bic_from_unknown_bank_code():
with pytest.raises(ValueError):
BIC.from_bank_code("PO", "12345678")
def test_bic_from_bank_code():
bic = BIC.from_bank_code("DE", "43060967")
assert bic.compact == "GENODEM1GLS"