From 9a4cbcd9549fee9865a537ed5236e2a2ebe52cf1 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Wed, 29 Jul 2020 09:33:41 -0300 Subject: Add more checks to new withdrawal API test --- tests/__init__.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py index 9f0dc11da..333953b9d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,11 +1,13 @@ +import json + from taler.util.amount import Amount def check_single_balance( - balances, - available, - pending_in=Amount.parse("TESTKUDOS:0"), - pending_out=Amount.parse("TESTKUDOS:0"), + balances, + available, + pending_in=Amount.parse("TESTKUDOS:0"), + pending_out=Amount.parse("TESTKUDOS:0"), ): assert len(balances) == 1 assert Amount.parse(balances[0]["available"]) == available @@ -15,3 +17,7 @@ def check_single_balance( def json_to_amount(d): return Amount(d["currency"], d["value"], d["fraction"]) + + +def print_json(obj): + print(json.dumps(obj, indent=2)) -- cgit v1.2.3