test: Enable ruff E713 lint
This commit is contained in:
10 files changed
+18
-17
No files matched your search
@@ -24,7 +24,7 @@ class SetBanTests(BitcoinTestFramework):
|
||||
# Node 0 connects to Node 1, check that the noban permission is not granted
|
||||
self.connect_nodes(0, 1)
|
||||
peerinfo = self.nodes[1].getpeerinfo()[0]
|
||||
assert not "noban" in peerinfo["permissions"]
|
||||
assert "noban" not in peerinfo["permissions"]
|
||||
|
||||
# Node 0 get banned by Node 1
|
||||
self.nodes[1].setban("127.0.0.1", "add")
|
||||
@@ -51,7 +51,7 @@ class SetBanTests(BitcoinTestFramework):
|
||||
self.restart_node(1, [])
|
||||
self.connect_nodes(0, 1)
|
||||
peerinfo = self.nodes[1].getpeerinfo()[0]
|
||||
assert not "noban" in peerinfo["permissions"]
|
||||
assert "noban" not in peerinfo["permissions"]
|
||||
|
||||
self.log.info("Test that a non-IP address can be banned/unbanned")
|
||||
node = self.nodes[1]
|
||||
|
||||
Reference in new issue
Block a user