|
|
|
@ -188,6 +188,8 @@ class ToolWalletTest(BitcoinTestFramework):
|
|
|
|
|
self.assert_raises_tool_error('Invalid command: help', 'help')
|
|
|
|
|
self.assert_raises_tool_error('Error: two methods provided (info and create). Only one method should be provided.', 'info', 'create')
|
|
|
|
|
self.assert_raises_tool_error('Error parsing command line arguments: Invalid parameter -foo', '-foo')
|
|
|
|
|
self.assert_raises_tool_error('No method provided. Run `bitcoin-wallet -help` for valid methods.')
|
|
|
|
|
self.assert_raises_tool_error('Wallet name must be provided when creating a new wallet.', 'create')
|
|
|
|
|
locked_dir = os.path.join(self.options.tmpdir, "node0", "regtest", "wallets")
|
|
|
|
|
error = 'Error initializing wallet database environment "{}"!'.format(locked_dir)
|
|
|
|
|
if self.options.descriptors:
|
|
|
|
|