Skip to content

Commit

Permalink
Adding Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgates committed Mar 19, 2024
1 parent c292302 commit 625e479
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyas2lib/tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@ async def test_runtime_error():
# Parse the generated AS2 message as the partner
raw_out_message = out_message.headers_str + b"\r\n" + out_message.content
in_message = as2.Message()
_, _, mdn = in_message.parse(
_, _, mdn = await in_message.aparse(
raw_out_message,
find_org_cb=afind_org,
find_partner_cb=afind_partner,
find_message_cb=afind_duplicate_message,
)

out_mdn = as2.Mdn()
_, _ = out_mdn.parse(
mdn.headers_str + b"\r\n" + mdn.content,
find_message_cb=afind_duplicate_message,
)

0 comments on commit 625e479

Please sign in to comment.