-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="pyiso20022", | ||
version="0.2.0", | ||
version="0.3.1", | ||
author="Peter Houghton", | ||
author_email="[email protected]", | ||
description="pyiso20022 is a library for generating ISO20022 messages in Python.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import pytest | ||
from xsdata.formats.dataclass.parsers import XmlParser | ||
from pyiso20022.camt.camt_052_001_02 import * | ||
|
||
|
||
@pytest.mark.parametrize("expected_acc_id", [ | ||
("106068381") | ||
]) | ||
def test_parse_camt052_001_02(expected_acc_id): | ||
|
||
parser = XmlParser() | ||
|
||
with open("example_files/gs_camt/camt052_001_02.xml", "rb") as xml_file: | ||
doc: Document = parser.parse(xml_file, Document, ) | ||
|
||
acc_id = doc.bk_to_cstmr_acct_rpt.rpt[0].acct.id.othr.id | ||
|
||
assert acc_id == expected_acc_id |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.