aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_fee_estimation.py
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2021-10-15 12:52:49 +0200
committerAntoine Poinsot <darosior@protonmail.com>2021-12-09 15:11:42 +0100
commit60ae1161a4c415cc73f47df95598f3688e8d34df (patch)
treeb1b172ffa42b57ac76254a95c90c09e3790fa924 /test/functional/feature_fee_estimation.py
parente50213967b6d5dda9c0acc4643c8ec67f9fd7284 (diff)
downloadbitcoin-60ae1161a4c415cc73f47df95598f3688e8d34df.tar.xz
qa: replace assert with test framework assertion helpers in fee estimation test
Diffstat (limited to 'test/functional/feature_fee_estimation.py')
-rwxr-xr-xtest/functional/feature_fee_estimation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_fee_estimation.py b/test/functional/feature_fee_estimation.py
index 937a4050cf..233ffd60da 100755
--- a/test/functional/feature_fee_estimation.py
+++ b/test/functional/feature_fee_estimation.py
@@ -279,7 +279,7 @@ class EstimateFeeTest(BitcoinTestFramework):
utxos_to_respend = []
txids_to_replace = []
- assert len(utxos) >= 250
+ assert_greater_than_or_equal(len(utxos), 250)
for _ in range(5):
# Broadcast 45 low fee transactions that will need to be RBF'd
for _ in range(45):
@@ -308,7 +308,7 @@ class EstimateFeeTest(BitcoinTestFramework):
# the rest needed to be RBF'd. We must return the 90% conf rate feerate.
high_feerate_kvb = Decimal(high_feerate) / COIN * 10 ** 3
est_feerate = node.estimatesmartfee(2)["feerate"]
- assert est_feerate == high_feerate_kvb
+ assert_equal(est_feerate, high_feerate_kvb)
def run_test(self):
self.log.info("This test is time consuming, please be patient")