mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
test: split equality asserts joined by and
Some tests combine multiple equality checks in one `assert`. Split those checks into separate assertions so failures point at the exact mismatch. This also removes mixed `==` expressions that the later cleanup should not touch.
This commit is contained in:
@@ -243,7 +243,8 @@ class WalletMiniscriptTest(BitcoinTestFramework):
|
||||
lambda: len(self.ms_wo_wallet.listunspent(minconf=0, addresses=[addr])) == 1
|
||||
)
|
||||
utxo = self.ms_wo_wallet.listunspent(minconf=0, addresses=[addr])[0]
|
||||
assert utxo["txid"] == txid and utxo["solvable"]
|
||||
assert_equal(utxo["txid"], txid)
|
||||
assert utxo["solvable"]
|
||||
|
||||
def signing_test(
|
||||
self, desc, sequence, locktime, sigs_count, stack_size, sha256_preimages
|
||||
@@ -271,7 +272,8 @@ class WalletMiniscriptTest(BitcoinTestFramework):
|
||||
self.wait_until(lambda: txid in self.funder.getrawmempool())
|
||||
self.funder.generatetoaddress(1, self.funder.getnewaddress())
|
||||
utxo = self.ms_sig_wallet.listunspent(addresses=[addr])[0]
|
||||
assert txid == utxo["txid"] and utxo["solvable"]
|
||||
assert_equal(txid, utxo["txid"])
|
||||
assert utxo["solvable"]
|
||||
|
||||
self.log.info("Creating a transaction spending these funds")
|
||||
dest_addr = self.funder.getnewaddress()
|
||||
|
||||
Reference in New Issue
Block a user