diff options
author | aideca <aideca@users.noreply.github.com> | 2017-02-11 05:43:28 +0000 |
---|---|---|
committer | aideca <aideca@users.noreply.github.com> | 2017-04-13 08:39:07 +0000 |
commit | 164019d611e9d67fd3e66eb7f18033c9249764d4 (patch) | |
tree | 52574d7359a6004231f371b43aabd12ea0934730 /test/functional/wallet-dump.py | |
parent | 9f821347793b6523fd0b609a198e0e83e76affbf (diff) |
Add dumpwallet output test
Diffstat (limited to 'test/functional/wallet-dump.py')
-rwxr-xr-x | test/functional/wallet-dump.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/wallet-dump.py b/test/functional/wallet-dump.py index 8876f935a4..352add28fb 100755 --- a/test/functional/wallet-dump.py +++ b/test/functional/wallet-dump.py @@ -4,6 +4,8 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the dumpwallet RPC.""" +import os + from test_framework.test_framework import BitcoinTestFramework from test_framework.util import (start_nodes, start_node, assert_equal, bitcoind_processes) @@ -82,7 +84,8 @@ class WalletDumpTest(BitcoinTestFramework): self.nodes[0].keypoolrefill() # dump unencrypted wallet - self.nodes[0].dumpwallet(tmpdir + "/node0/wallet.unencrypted.dump") + result = self.nodes[0].dumpwallet(tmpdir + "/node0/wallet.unencrypted.dump") + assert_equal(result['filename'], os.path.abspath(tmpdir + "/node0/wallet.unencrypted.dump")) found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \ read_dump(tmpdir + "/node0/wallet.unencrypted.dump", addrs, None) |