This commit is contained in:
2026-08-04 15:36:56 +02:00
parent 7fcc90d0a4
commit 7d7bd33b97
2 changed files with 24 additions and 1 deletions

View File

@@ -41,6 +41,16 @@ class BankTestCase(ModuleTestCase):
bank.bic = 'foo'
bank.save()
@with_transaction()
def test_bic_matches_primary_branch(self):
"Test BIC matches main branch"
pool = Pool()
Account = pool.get('bank.account')
self.assertTrue(Account._bic_matches('CIALCHBBXXX', 'CIALCHBB'))
self.assertTrue(Account._bic_matches('CIALCHBB', 'CIALCHBBXXX'))
self.assertFalse(Account._bic_matches('CIALCHBB123', 'CIALCHBB'))
@with_transaction()
def test_iban_format(self):
'Test IBAN format'