pytest: Added dynamic RPC call dispatch

Instead of having to define every single method we can now just call
any method, it'll fail upstream if it does not exist.
This commit is contained in:
Christian Decker
2017-04-12 11:08:48 -07:00
committed by Rusty Russell
parent 6a072c4c6e
commit 4e0be7a48f
2 changed files with 16 additions and 28 deletions

View File

@@ -133,7 +133,7 @@ class LightningDTests(BaseLightningDTests):
assert ret['id'] == l2.info['id']
addr = l1.rpc.newaddr()
addr = l1.rpc.newaddr()['address']
txid = l1.bitcoin.rpc.sendtoaddress(addr, 0.02)
tx = l1.bitcoin.rpc.getrawtransaction(txid)