mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-15 10:07:41 +02:00
test: add missing assert_equal imports
The later scripted diff only rewrites call sites. Add `assert_equal` imports in the remaining files that still need them so the mechanical replacement can apply cleanly.
This commit is contained in:
@@ -58,6 +58,7 @@ from test_framework.script import (
|
||||
OP_SUBSTR,
|
||||
OP_XOR,
|
||||
)
|
||||
from test_framework.util import assert_equal
|
||||
from test_framework.script_util import (
|
||||
MIN_PADDING,
|
||||
MIN_STANDARD_TX_NONWITNESS_SIZE,
|
||||
|
||||
@@ -9,6 +9,7 @@ import os
|
||||
import stat
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import assert_equal
|
||||
|
||||
|
||||
class PosixFsPermissionsTest(BitcoinTestFramework):
|
||||
|
||||
@@ -10,6 +10,7 @@ import os
|
||||
import stat
|
||||
import subprocess
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import assert_equal
|
||||
|
||||
|
||||
class BlockstoreReindexTest(BitcoinTestFramework):
|
||||
|
||||
@@ -8,7 +8,7 @@ import random
|
||||
import threading
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import get_rpc_proxy
|
||||
from test_framework.util import assert_equal, get_rpc_proxy
|
||||
from test_framework.wallet import MiniWallet
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import itertools
|
||||
import time
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import assert_not_equal
|
||||
from test_framework.util import assert_equal, assert_not_equal
|
||||
from test_framework.messages import (
|
||||
NODE_NETWORK,
|
||||
NODE_NETWORK_LIMITED,
|
||||
|
||||
@@ -13,6 +13,7 @@ import random
|
||||
import unittest
|
||||
|
||||
from test_framework.crypto.secp256k1 import FE, G, GE
|
||||
from test_framework.util import assert_equal
|
||||
|
||||
# Precomputed constant square root of -3 (mod p).
|
||||
MINUS_3_SQRT = FE(-3).sqrt()
|
||||
|
||||
@@ -17,7 +17,7 @@ Exports:
|
||||
|
||||
import unittest
|
||||
from hashlib import sha256
|
||||
from test_framework.util import assert_not_equal
|
||||
from test_framework.util import assert_equal, assert_not_equal
|
||||
|
||||
class FE:
|
||||
"""Objects of this class represent elements of the field GF(2**256 - 2**32 - 977).
|
||||
|
||||
@@ -14,7 +14,7 @@ import random
|
||||
import unittest
|
||||
|
||||
from test_framework.crypto import secp256k1
|
||||
from test_framework.util import assert_not_equal, random_bitflip
|
||||
from test_framework.util import assert_equal, assert_not_equal, random_bitflip
|
||||
|
||||
# Point with no known discrete log.
|
||||
H_POINT = "50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
import base64
|
||||
|
||||
from .util import assert_equal
|
||||
from .messages import (
|
||||
CTransaction,
|
||||
deser_string,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"""
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import assert_raises_rpc_error
|
||||
from test_framework.util import assert_raises_rpc_error, assert_equal
|
||||
|
||||
class DisableWalletTest (BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
|
||||
Reference in New Issue
Block a user