Debian Codegraph @

tests/debit/test_config.py

raw symbols SCIP
1 import pytest
2
3 from sepaxml import SepaDD
4
5
6 def test_valid_config():
7 SepaDD({
8 "name": "TestCreditor",
9 "IBAN": "NL50BANK1234567890",
10 "BIC": "BANKNL2A",
11 "batch": True,
12 "creditor_id": "000000",
13 "currency": "EUR"
14 })
15
16
17 def test_invalid_config():
18 with pytest.raises(Exception):
19 SepaDD({
20 "name": "TestCreditor",
21 "BIC": "BANKNL2A",
22 "batch": True,
23 "creditor_id": "000000",
24 "currency": "EUR"
25 })