Skip to content

Commit

Permalink
Add dumpwallet output test
Browse files Browse the repository at this point in the history
  • Loading branch information
aideca committed Apr 13, 2017
1 parent 9f82134 commit 164019d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/functional/wallet-dump.py
Expand Up @@ -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)

Expand Down Expand Up @@ -82,7 +84,8 @@ def run_test (self):
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)
Expand Down

0 comments on commit 164019d

Please sign in to comment.