From 8d95ce279b8fe80506758ab7456cb2740ce6ab33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20DA=20ROCHA?= <sebastien@da-rocha.net>
Date: Wed, 11 Jul 2018 19:09:14 +0200
Subject: [PATCH] [enh] add test for amount command

---
 tests/test_end_to_end.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py
index 34a385a5..baf6f171 100644
--- a/tests/test_end_to_end.py
+++ b/tests/test_end_to_end.py
@@ -24,3 +24,14 @@ def test_id():
 
     output = check_output(["silkaj", "id", "elois", "--gtest"]).decode()
     assert "D7CYHJXjaH4j7zRdWngUbsURPnSnjsCYtvo6f8dvW3C" in output
+
+
+def test_amount():
+    """tests 'silkaj amount' command on gtest"""
+
+    output = check_output(["silkaj", "amount", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj", "--gtest"]).decode()
+    assert "Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj" in output
+    assert "Total Relative     =" in output
+    assert "UD ÄžTest" in output
+    assert "Total Quantitative =" in output
+
-- 
GitLab