Skip to content

Commit ee3b21d

Browse files
committed
[tests] Add docstring for wallet_importmulti.py
Adds a docstring describing the new importmulti test.
1 parent fbdba40 commit ee3b21d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/functional/wallet_importmulti.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
# Copyright (c) 2014-2018 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5-
"""Test the importmulti RPC."""
5+
"""Test the importmulti RPC.
6+
7+
Test importmulti by generating keys on node0, importing the scriptPubKeys and
8+
addresses on node1 and then testing the address info for the different address
9+
variants.
10+
11+
- `get_key()` and `get_multisig()` are called to generate keys on node0 and
12+
return the privkeys, pubkeys and all variants of scriptPubKey and address.
13+
- `test_importmulti()` is called to send an importmulti call to node1, test
14+
success, and (if unsuccessful) test the error code and error message returned.
15+
- `test_address()` is called to call getaddressinfo for an address on node1
16+
and test the values returned."""
617
from collections import namedtuple
718

819
from test_framework.address import (

0 commit comments

Comments
 (0)