mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user