gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin-tests] branch master updated (2f4324e -> 52a2e7a)


From: gnunet
Subject: [libeufin-tests] branch master updated (2f4324e -> 52a2e7a)
Date: Mon, 30 Nov 2020 17:23:13 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository libeufin-tests.

    from 2f4324e  include new sample
     new 33bd5be  abstracting checks
     new 52a2e7a  abstracting checks

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 checks.py | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/checks.py b/checks.py
index c7a6840..e0a2c6b 100755
--- a/checks.py
+++ b/checks.py
@@ -34,9 +34,32 @@ def assert_json_equal(json1, json2):
     assert len(diff.keys()) == 0
 
 def test_camt53_example1():
+    # This document has the following structure:
+    #
+    # - box #0
+    # -- batch
+    # --- tx
+    # --- tx
+    #
+    # - box #1
+    # -- batch
+    # --- tx
+    #
     parsed = call_parser("./samples/camt53_example1.xml")
 
+    entries = parsed.get("entries")
+    assert(len(entries) == 2)
+    assert(len(entries[0].get("batches")) == 2)
+    assert(len(entries[1].get("batches")) == 1)
+
 def test_camt53_example2():
+    #
+    # This document has the following structure:
+    #
+    # - box #0
+    # -- batch
+    # --- tx
     parsed = call_parser("./samples/camt53_example2.xml")
-    expected = get_json_from_disk("./samples/camt53_example2_expected.json")
-    assert_json_equal(parsed, expected)
+    entries = parsed.get("entries")
+    assert(len(entries) == 1)
+    assert(len(entries[0].get("batches")) == 1)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]