From de3a68db84af05bbf755c5015789bf8f5ac1587d Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Thu, 9 Aug 2018 22:52:29 +0200 Subject: [PATCH] add more tests for faucetfund edge cases --- qa/rpc-tests/cryptoconditions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/cryptoconditions.py b/qa/rpc-tests/cryptoconditions.py index 2784a5823..06f965340 100755 --- a/qa/rpc-tests/cryptoconditions.py +++ b/qa/rpc-tests/cryptoconditions.py @@ -79,8 +79,15 @@ class CryptoConditionsTest (BitcoinTestFramework): result = rpc.faucetinfo() assert_equal(result['result'], 'success') - # fails - #result = rpc.faucetfund(-1.0) + result = rpc.faucetfund("1") + assert_equal(result['result'], 'success') + assert_true(result['hex']) + + result = rpc.faucetfund("0") + assert_equal(result['result'], 'error') + + result = rpc.faucetfund("-1") + assert_equal(result['result'], 'error') # Dice tests dice = rpc.diceaddress()