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:
Lőrinc
2026-03-08 20:16:16 +00:00
parent 76a5570b36
commit 4f4516e3f6
3 changed files with 27 additions and 9 deletions

View File

@@ -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()