From 9aa7db103d3197ce5a190ece2d0190db2990ae51 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 9 Sep 2019 19:59:41 +0200 Subject: [PATCH] Add test for failing case --- tests/rpc/test_fiat_convert.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/rpc/test_fiat_convert.py b/tests/rpc/test_fiat_convert.py index 8f6b2eb93..05760ce25 100644 --- a/tests/rpc/test_fiat_convert.py +++ b/tests/rpc/test_fiat_convert.py @@ -210,3 +210,10 @@ def test_convert_amount(mocker): fiat_symbol="BTC" ) assert result == 1.23 + + result = fiat_convert.convert_amount( + crypto_amount="1.23", + crypto_symbol="BTC", + fiat_symbol="BTC" + ) + assert result == 1.23