test: Wallet methods are disabled when no wallet is loaded

This commit is contained in:
João Barbosa committed 2018-06-18 16:35:17 +01:00
1 parent 4940a20a46
commit ccbf7ae749
2 files changed
+1 -5

No files matched your search

+1
View File
@@ -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()