From ee3b21dccbeb0f9d4e99de869dbfaf625c159c7f Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 6 Dec 2018 13:29:32 -0500 Subject: [PATCH] [tests] Add docstring for wallet_importmulti.py Adds a docstring describing the new importmulti test. --- test/functional/wallet_importmulti.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py index cb44cddf8..a163f7018 100755 --- a/test/functional/wallet_importmulti.py +++ b/test/functional/wallet_importmulti.py @@ -2,7 +2,18 @@ # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -"""Test the importmulti RPC.""" +"""Test the importmulti RPC. + +Test importmulti by generating keys on node0, importing the scriptPubKeys and +addresses on node1 and then testing the address info for the different address +variants. + +- `get_key()` and `get_multisig()` are called to generate keys on node0 and + return the privkeys, pubkeys and all variants of scriptPubKey and address. +- `test_importmulti()` is called to send an importmulti call to node1, test + success, and (if unsuccessful) test the error code and error message returned. +- `test_address()` is called to call getaddressinfo for an address on node1 + and test the values returned.""" from collections import namedtuple from test_framework.address import (