diff options
author | John Newbery <john@johnnewbery.com> | 2018-09-23 08:50:47 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-09-23 08:50:47 -0400 |
commit | 67d7d67cf32d3652dc1a06a6835c9c3d8b2f38ff (patch) | |
tree | 4bd331fb7cfc4106e49a2e0647035761d637802e /test/functional/wallet_dump.py | |
parent | 920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0 (diff) |
[test] Fix flake8 warnings in tests
Fix all flake8 warnings in tests that are about to be updated
to remove addwitnessaddress
Diffstat (limited to 'test/functional/wallet_dump.py')
-rwxr-xr-x | test/functional/wallet_dump.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/wallet_dump.py b/test/functional/wallet_dump.py index b1db1e4ab9..643289a8c7 100755 --- a/test/functional/wallet_dump.py +++ b/test/functional/wallet_dump.py @@ -3,7 +3,6 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the dumpwallet RPC.""" - import os from test_framework.test_framework import BitcoinTestFramework @@ -107,9 +106,9 @@ class WalletDumpTest(BitcoinTestFramework): # wallet, we will expect 21 addresses in the dump test_addr_count = 20 addrs = [] - for i in range(0,test_addr_count): + for i in range(0, test_addr_count): addr = self.nodes[0].getnewaddress() - vaddr= self.nodes[0].getaddressinfo(addr) #required to get hd keypath + vaddr = self.nodes[0].getaddressinfo(addr) # required to get hd keypath addrs.append(vaddr) # Should be a no-op: self.nodes[0].keypoolrefill() @@ -131,7 +130,7 @@ class WalletDumpTest(BitcoinTestFramework): assert_equal(found_addr_rsv, 90 * 2) # 90 keys plus 100% internal keys assert_equal(witness_addr_ret, witness_addr) # p2sh-p2wsh address added to the first key - #encrypt wallet, restart, unlock and dump + # encrypt wallet, restart, unlock and dump self.nodes[0].encryptwallet('test') self.nodes[0].walletpassphrase('test', 10) # Should be a no-op: @@ -155,13 +154,13 @@ class WalletDumpTest(BitcoinTestFramework): # Make sure the address is not IsMine before import result = self.nodes[0].getaddressinfo(multisig_addr) - assert(result['ismine'] == False) + assert not result['ismine'] self.nodes[0].importwallet(wallet_unenc_dump) # Now check IsMine is true result = self.nodes[0].getaddressinfo(multisig_addr) - assert(result['ismine'] == True) + assert result['ismine'] if __name__ == '__main__': WalletDumpTest().main() |