MCPcopy Create free account
hub / github.com/ElementsProject/elements / test_locked_wallet_fails

Function test_locked_wallet_fails

test/functional/wallet_bumpfee.py:555–562  ·  view source on GitHub ↗
(self, rbf_node, dest_address)

Source from the content-addressed store, hash-verified

553
554
555def test_locked_wallet_fails(self, rbf_node, dest_address):
556 self.log.info('Test that locked wallet cannot bump txn')
557 rbfid = spend_one_input(rbf_node, dest_address)
558 rbf_node.walletlock()
559 assert_raises_rpc_error(-13, "Please enter the wallet passphrase with walletpassphrase first.",
560 rbf_node.bumpfee, rbfid)
561 rbf_node.walletpassphrase(WALLET_PASSPHRASE, WALLET_PASSPHRASE_TIMEOUT)
562 self.clear_mempool()
563
564
565def test_change_script_match(self, rbf_node, dest_address):

Callers 1

run_testMethod · 0.70

Calls 4

assert_raises_rpc_errorFunction · 0.90
infoMethod · 0.80
clear_mempoolMethod · 0.80
spend_one_inputFunction · 0.70

Tested by

no test coverage detected