mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge a63192afb8 into merged_master (Bitcoin PR bitcoin/bitcoin#19762)
This commit is contained in:
commit
b735ecc00d
9 changed files with 147 additions and 5 deletions
|
|
@ -89,6 +89,11 @@ class TestBitcoinCli(BitcoinTestFramework):
|
|||
rpc_response = self.nodes[0].getblockchaininfo()
|
||||
assert_equal(cli_response, rpc_response)
|
||||
|
||||
self.log.info("Test named arguments")
|
||||
assert_equal(self.nodes[0].cli.echo(0, 1, arg3=3, arg5=5), ['0', '1', None, '3', None, '5'])
|
||||
assert_raises_rpc_error(-8, "Parameter arg1 specified twice both as positional and named argument", self.nodes[0].cli.echo, 0, 1, arg1=1)
|
||||
assert_raises_rpc_error(-8, "Parameter arg1 specified twice both as positional and named argument", self.nodes[0].cli.echo, 0, None, 2, arg1=1)
|
||||
|
||||
user, password = get_auth_cookie(self.nodes[0].datadir, self.chain)
|
||||
|
||||
self.log.info("Test -stdinrpcpass option")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue