mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-07 10:27:47 -05:00
test: add coverage for expected output types in rpc help docs
This commit is contained in:
parent
e579ad9a20
commit
a283dbd9c4
1 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,11 @@ class HelpRpcTest(BitcoinTestFramework):
|
|||
f.write(self.nodes[0].help(call))
|
||||
|
||||
def wallet_help(self):
|
||||
assert 'getnewaddress ( "label" "address_type" )' in self.nodes[0].help('getnewaddress')
|
||||
assert '"legacy", "p2sh-segwit", "bech32", "bech32m".' in self.nodes[0].help('getaddressinfo')
|
||||
assert '"legacy", "p2sh-segwit", "bech32".' in self.nodes[0].help('addmultisigaddress')
|
||||
ret = self.nodes[0].help('getnewaddress')
|
||||
assert '"legacy", "p2sh-segwit", "bech32", "bech32m".' in ret
|
||||
assert 'getnewaddress ( "label" "address_type" )' in ret
|
||||
self.restart_node(0, extra_args=['-nowallet=1'])
|
||||
assert 'getnewaddress ( "label" "address_type" )' in self.nodes[0].help('getnewaddress')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue