From bc5add399beb7073bb82226af45edf1f3e889c97 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Tue, 3 Sep 2019 13:38:44 +0200 Subject: [PATCH] pylightning: adds a millisatoshi test class --- contrib/pylightning/tests/test_millisatoshi.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 contrib/pylightning/tests/test_millisatoshi.py diff --git a/contrib/pylightning/tests/test_millisatoshi.py b/contrib/pylightning/tests/test_millisatoshi.py new file mode 100644 index 000000000..726213cad --- /dev/null +++ b/contrib/pylightning/tests/test_millisatoshi.py @@ -0,0 +1,6 @@ +from lightning import Millisatoshi + + +def test_sum_radd(): + result = sum([Millisatoshi(1), Millisatoshi(2), Millisatoshi(3)]) + assert int(result) == 6