From 7b9e2b3c608dbb7469e042e6a88f76f68d7e3569 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Fri, 10 Aug 2018 08:40:28 +0200 Subject: [PATCH] faucetget tests --- qa/rpc-tests/cryptoconditions.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/qa/rpc-tests/cryptoconditions.py b/qa/rpc-tests/cryptoconditions.py index 36126cfc5..f3022c036 100755 --- a/qa/rpc-tests/cryptoconditions.py +++ b/qa/rpc-tests/cryptoconditions.py @@ -86,10 +86,13 @@ class CryptoConditionsTest (BitcoinTestFramework): result = rpc.faucetfund("-1") assert_equal(result['result'], 'error') - result = rpc.faucetfund("1") + # why does this fail? + #result = rpc.faucetfund("1987") + result = rpc.faucetfund("2") assert_equal(result['result'], 'success') assert result['hex'], "hex key found" + # broadcast the xtn result = rpc.sendrawtransaction(result['hex']) txid = result[0] assert txid, "found txid" @@ -108,6 +111,15 @@ class CryptoConditionsTest (BitcoinTestFramework): assert_equal(result['result'], 'success') assert_greater_than( result['funding'], 0 ) + result = rpc.faucetget() + assert_equal(result['result'], 'success') + assert result['hex'], "hex key found" + + # broadcast the xtn + result = rpc.sendrawtransaction(result['hex']) + txid = result[0] + assert txid, "found txid" + # Dice tests dice = rpc.diceaddress() assert_equal(dice['result'], 'success')