mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
[tests] fix nodehandling.py flake8 warnings
This commit is contained in:
parent
23e6e64a24
commit
d6564a26f4
1 changed files with 27 additions and 21 deletions
|
@ -3,11 +3,17 @@
|
|||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
"""Test node handling."""
|
||||
import time
|
||||
import urllib.parse
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import *
|
||||
|
||||
import urllib.parse
|
||||
from test_framework.util import (assert_equal,
|
||||
assert_raises_jsonrpc,
|
||||
connect_nodes_bi,
|
||||
p2p_port,
|
||||
start_node,
|
||||
stop_node,
|
||||
)
|
||||
|
||||
class NodeHandlingTest(BitcoinTestFramework):
|
||||
|
||||
|
@ -42,7 +48,7 @@ class NodeHandlingTest (BitcoinTestFramework):
|
|||
self.nodes[2].clearbanned()
|
||||
assert_equal(len(self.nodes[2].listbanned()), 0)
|
||||
|
||||
##test persisted banlist
|
||||
# test persisted banlist
|
||||
self.nodes[2].setban("127.0.0.0/32", "add")
|
||||
self.nodes[2].setban("127.0.0.0/24", "add")
|
||||
self.nodes[2].setban("192.168.0.1", "add", 1) # ban for 1 seconds
|
||||
|
|
Loading…
Reference in a new issue