libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 69cc8359da2e929fd1bdc8113bc82141d0658291
parent 5259e4fe09c41132303ed90a4eb9a6dc3eb2e31d
Author: MS <ms@taler.net>
Date:   Mon, 14 Dec 2020 10:09:52 +0100

testing #6657

Diffstat:
Mparsing-tests/checks.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/parsing-tests/checks.py b/parsing-tests/checks.py @@ -28,6 +28,12 @@ def get_json_from_disk(json_file): with open(json_file_abs) as j: return json.load(j) +def test_dashed_subject(): + parsed = call_parser("./samples/camt53_example_dashed_subject.xml") + entries = parsed["reports"][0]["entries"] + tx = entries[0]["batches"][0]["batchTransactions"][0] + assert tx["details"]["unstructuredRemittanceInformation"] == "subject-with-dashes" + def test_camt53_example3(): parsed = call_parser("./samples/camt53_example3.xml") entries = parsed["reports"][0]["entries"]