Skip to content

Commit 164019d

Browse files
committed
Add dumpwallet output test
1 parent 9f82134 commit 164019d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/wallet-dump.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test the dumpwallet RPC."""
66

7+
import os
8+
79
from test_framework.test_framework import BitcoinTestFramework
810
from test_framework.util import (start_nodes, start_node, assert_equal, bitcoind_processes)
911

@@ -82,7 +84,8 @@ def run_test (self):
8284
self.nodes[0].keypoolrefill()
8385

8486
# dump unencrypted wallet
85-
self.nodes[0].dumpwallet(tmpdir + "/node0/wallet.unencrypted.dump")
87+
result = self.nodes[0].dumpwallet(tmpdir + "/node0/wallet.unencrypted.dump")
88+
assert_equal(result['filename'], os.path.abspath(tmpdir + "/node0/wallet.unencrypted.dump"))
8689

8790
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \
8891
read_dump(tmpdir + "/node0/wallet.unencrypted.dump", addrs, None)

0 commit comments

Comments
 (0)