[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin-tests] 04/05: adjust and extend checks
From: |
gnunet |
Subject: |
[libeufin-tests] 04/05: adjust and extend checks |
Date: |
Thu, 03 Dec 2020 13:39:18 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin-tests.
commit 85a9b2c020d90cf60c1ec8d08ba7c49ac1789770
Author: MS <ms@taler.net>
AuthorDate: Tue Dec 1 21:50:37 2020 +0100
adjust and extend checks
---
checks.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/checks.py b/checks.py
index ddaa22f..dbc188c 100755
--- a/checks.py
+++ b/checks.py
@@ -56,8 +56,11 @@ def test_camt53_example3():
# This document is acceptable.
parsed = call_parser("./samples/camt53_example3.xml")
entries = parsed["reports"][0]["entries"]
- assert(len(entries) == 1)
+ assert(len(entries) == 4)
assert(len(entries[0]["batches"][0]["batchTransactions"]) == 0)
+ assert(len(entries[1]["batches"][0]["batchTransactions"]) == 1)
+ assert(len(entries[2]["batches"][0]["batchTransactions"]) == 1)
+ assert(len(entries[3]["batches"][0]["batchTransactions"]) == 1)
def test_camt53_example4():
# This document is acceptable too, but it contains a
@@ -65,5 +68,8 @@ def test_camt53_example4():
# not show up under the Taler facade.
parsed = call_parser("./samples/camt53_example4.xml")
entries = parsed["reports"][0]["entries"]
- assert(len(entries) == 1)
+ assert(len(entries) == 4)
assert(len(entries[0]["batches"][0]["batchTransactions"]) == 0)
+ assert(len(entries[1]["batches"][0]["batchTransactions"]) == 1)
+ assert(len(entries[2]["batches"][0]["batchTransactions"]) == 1)
+ assert(len(entries[3]["batches"][0]["batchTransactions"]) == 1)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.