diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index a3eb0b0578c..078672c3c62 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -144,7 +144,8 @@ class AuthServiceProxy(): else: return response['result'] else: - assert response['jsonrpc'] == '2.0' + from .util import assert_equal + assert_equal(response['jsonrpc'], '2.0') if status != HTTPStatus.OK: raise JSONRPCException({ 'code': -342, 'message': 'non-200 HTTP status code'}, status) diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py index 4a6c45e746f..80735e01dd1 100755 --- a/test/functional/wallet_bumpfee.py +++ b/test/functional/wallet_bumpfee.py @@ -341,8 +341,8 @@ def test_simple_bumpfee_succeeds(self, mode, rbf_node, peer_node, dest_address): assert_equal(bumpedwtx["replaces_txid"], rbfid) # if this is a new_outputs test, check that outputs were indeed replaced if mode == "new_outputs": - assert len(bumpedwtx["details"]) == 1 - assert bumpedwtx["details"][0]["address"] == new_address + assert_equal(len(bumpedwtx["details"]), 1) + assert_equal(bumpedwtx["details"][0]["address"], new_address) self.clear_mempool()