aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet-dump.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-06-05 18:00:56 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-06-05 18:06:34 +0200
commit9fec4da0bec93a49798b5f5e92cf76e900759ee4 (patch)
tree22f118baf75899ea74bfc9de875aa5206ca47ae4 /test/functional/wallet-dump.py
parentbea5b00cfe95cd37832305c0f93c339a22a7d79d (diff)
parent164019d611e9d67fd3e66eb7f18033c9249764d4 (diff)
Merge #9740: Add friendly output to dumpwallet
164019d Add dumpwallet output test (aideca) 9f82134 Add friendly output to dumpwallet refs #9564 (aideca) Tree-SHA512: 913fcf18d42eebe34173f1f2519973494b1ad2d86d125ff4bf566d6c64aa501c02f8831e6f44812cd87a46916f61c6f510146af406865b31856d8336c173569f
Diffstat (limited to 'test/functional/wallet-dump.py')
-rwxr-xr-xtest/functional/wallet-dump.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/wallet-dump.py b/test/functional/wallet-dump.py
index c38a9bc996..9cb32d4650 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 (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)