Skip to content

Commit

Permalink
[tests] tidy up imports in wallet_importmulti.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Dec 6, 2018
1 parent cb41ade commit e5a8ea8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/functional/wallet_importmulti.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the importmulti RPC."""

from test_framework import script
from test_framework.messages import sha256
from test_framework.script import (
CScript,
OP_0,
OP_NOP,
hash160
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
Expand All @@ -13,12 +19,6 @@
bytes_to_hex_str,
hex_str_to_bytes
)
from test_framework.script import (
CScript,
OP_0,
hash160
)
from test_framework.messages import sha256

class ImportMultiTest(BitcoinTestFramework):
def set_test_params(self):
Expand Down Expand Up @@ -112,7 +112,7 @@ def run_test(self):

# Nonstandard scriptPubKey + !internal
self.log.info("Should not import a nonstandard scriptPubKey without internal flag")
nonstandardScriptPubKey = address['scriptPubKey'] + bytes_to_hex_str(script.CScript([script.OP_NOP]))
nonstandardScriptPubKey = address['scriptPubKey'] + bytes_to_hex_str(CScript([OP_NOP]))
address = self.nodes[0].getaddressinfo(self.nodes[0].getnewaddress())
result = self.nodes[1].importmulti([{
"scriptPubKey": nonstandardScriptPubKey,
Expand Down

0 comments on commit e5a8ea8

Please sign in to comment.