diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-06-12 15:30:32 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-06-18 16:35:17 +0100 |
commit | ccbf7ae7496fd13b4147aa13d7408712bd90c614 (patch) | |
tree | 97f2669501cbbb53643a88773cc685f99cf16a5e /test/functional/wallet_multiwallet.py | |
parent | 4940a20a46685cd56ea045d8cc7fe058c6222431 (diff) |
test: Wallet methods are disabled when no wallet is loaded
Diffstat (limited to 'test/functional/wallet_multiwallet.py')
-rwxr-xr-x | test/functional/wallet_multiwallet.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py index 7f739a1316..8d15ef661b 100755 --- a/test/functional/wallet_multiwallet.py +++ b/test/functional/wallet_multiwallet.py @@ -254,6 +254,7 @@ class MultiWalletTest(BitcoinTestFramework): for wallet_name in self.nodes[0].listwallets(): self.nodes[0].unloadwallet(wallet_name) assert_equal(self.nodes[0].listwallets(), []) + assert_raises_rpc_error(-32601, "Method not found (wallet method is disabled because no wallet is loaded)", self.nodes[0].getwalletinfo) if __name__ == '__main__': MultiWalletTest().main() |