fixed comparision issue : dict vs. object

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-01-10 16:20:51 +01:00
parent 4e431987af
commit f3b7df661f
No known key found for this signature in database

View File

@ -332,7 +332,7 @@ class TestMultipleInputs(object):
b.store_bulk_transactions([tx]) b.store_bulk_transactions([tx])
spent_inputs_user1 = b.get_spent(input_txid, 0) spent_inputs_user1 = b.get_spent(input_txid, 0)
assert spent_inputs_user1 == tx assert spent_inputs_user1 == tx.to_dict()
def test_get_spent_single_tx_multiple_outputs(self, b, user_sk, user_pk, alice): def test_get_spent_single_tx_multiple_outputs(self, b, user_sk, user_pk, alice):
# create a new users # create a new users
@ -359,7 +359,7 @@ class TestMultipleInputs(object):
# check that used inputs are marked as spent # check that used inputs are marked as spent
for ffill in tx_create.to_inputs()[:2]: for ffill in tx_create.to_inputs()[:2]:
spent_tx = b.get_spent(ffill.fulfills.txid, ffill.fulfills.output) spent_tx = b.get_spent(ffill.fulfills.txid, ffill.fulfills.output)
assert spent_tx == tx_transfer_signed assert spent_tx == tx_transfer_signed.to_dict()
# check if remaining transaction that was unspent is also perceived # check if remaining transaction that was unspent is also perceived
# spendable by Planetmint # spendable by Planetmint