bank-payment/account_payment_order/tests/test_bank.py

15 lines
410 B
Python
Raw Normal View History

2021-03-23 19:28:51 +00:00
# © 2017 Creu Blanca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from flectra.tests.common import TransactionCase
from flectra.exceptions import ValidationError
class TestBank(TransactionCase):
def test_bank(self):
bank = self.env['res.bank'].search([], limit=1)
self.assertTrue(bank)
with self.assertRaises(ValidationError):
bank.bic = "TEST"