test: create assert_not_equal util and add to where imports are needed

In the functional tests there are lots of cases where we assert != which
this new util will replace, we also are adding the imports and the new assertion
This commit is contained in:
kevkevin
2024-02-27 19:41:12 -06:00
committed by kevkevinpal
parent 930b237f16
commit 7bb83f6718
41 changed files with 137 additions and 83 deletions

View File

@@ -14,6 +14,7 @@ from test_framework.messages import (
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_not_equal,
assert_equal,
assert_greater_than,
assert_greater_than_or_equal,
@@ -363,7 +364,7 @@ class EstimateFeeTest(BitcoinTestFramework):
self.nodes[0].mockscheduler(SECONDS_PER_HOUR)
fee_dat_current_content = open(fee_dat, "rb").read()
assert fee_dat_current_content != fee_dat_initial_content
assert_not_equal(fee_dat_current_content, fee_dat_initial_content)
fee_dat_initial_content = fee_dat_current_content
@@ -371,7 +372,7 @@ class EstimateFeeTest(BitcoinTestFramework):
self.generate(self.nodes[0], 5, sync_fun=self.no_op)
self.restart_node(0)
fee_dat_current_content = open(fee_dat, "rb").read()
assert fee_dat_current_content != fee_dat_initial_content
assert_not_equal(fee_dat_current_content, fee_dat_initial_content)
def test_acceptstalefeeestimates_option(self):