@@ -42,7 +42,7 @@ def run_test (self):
4242 masterkeyid = self .nodes [1 ].getwalletinfo ()['hdmasterkeyid' ]
4343 assert_equal (len (masterkeyid ), 40 )
4444
45- #create an internal key
45+ # create an internal key
4646 change_addr = self .nodes [1 ].getrawchangeaddress ()
4747 change_addrV = self .nodes [1 ].validateaddress (change_addr );
4848 assert_equal (change_addrV ["hdkeypath" ], "m/0'/1'/0'" ) #first internal child key
@@ -70,7 +70,7 @@ def run_test (self):
7070 self .nodes [0 ].sendtoaddress (non_hd_add , 1 )
7171 self .nodes [0 ].generate (1 )
7272
73- #create an internal key (again)
73+ # create an internal key (again)
7474 change_addr = self .nodes [1 ].getrawchangeaddress ()
7575 change_addrV = self .nodes [1 ].validateaddress (change_addr );
7676 assert_equal (change_addrV ["hdkeypath" ], "m/0'/1'/1'" ) #second internal child key
@@ -100,15 +100,15 @@ def run_test (self):
100100 #connect_nodes_bi(self.nodes, 0, 1)
101101 assert_equal (self .nodes [1 ].getbalance (), num_hd_adds + 1 )
102102
103- #send a tx and make sure its using the internal chain for the changeoutput
103+ # send a tx and make sure its using the internal chain for the changeoutput
104104 txid = self .nodes [1 ].sendtoaddress (self .nodes [0 ].getnewaddress (), 1 )
105105 outs = self .nodes [1 ].decoderawtransaction (self .nodes [1 ].gettransaction (txid )['hex' ])['vout' ];
106106 keypath = ""
107107 for out in outs :
108108 if out ['value' ] != 1 :
109109 keypath = self .nodes [1 ].validateaddress (out ['scriptPubKey' ]['addresses' ][0 ])['hdkeypath' ]
110110
111- assert (keypath [0 :7 ] == "m/0'/1'" )
111+ assert_equal (keypath [0 :7 ], "m/0'/1'" )
112112
113113if __name__ == '__main__' :
114114 WalletHDTest ().main ()
0 commit comments