From ca9ca09a00c3d291c846e82cc135fa7364b309b8 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 25 Sep 2018 22:49:44 -0400 Subject: [PATCH] wallet unit test fixes --- tests/unit/wallet/test_ledger.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/wallet/test_ledger.py b/tests/unit/wallet/test_ledger.py index 05a47bf0c..5838287b9 100644 --- a/tests/unit/wallet/test_ledger.py +++ b/tests/unit/wallet/test_ledger.py @@ -36,14 +36,14 @@ class BasicAccountingTests(LedgerTestCase): tx = Transaction().add_outputs([Output.pay_pubkey_hash(100, hash160)]) yield self.ledger.db.save_transaction_io( - 'insert', tx, 1, True, address, hash160, '{}:{}:'.format(tx.id, 1) + 'insert', tx, True, address, hash160, '{}:{}:'.format(tx.id, 1) ) balance = yield self.account.get_balance(0) self.assertEqual(balance, 100) tx = Transaction().add_outputs([Output.pay_claim_name_pubkey_hash(100, 'foo', b'', hash160)]) yield self.ledger.db.save_transaction_io( - 'insert', tx, 1, True, address, hash160, '{}:{}:'.format(tx.id, 1) + 'insert', tx, True, address, hash160, '{}:{}:'.format(tx.id, 1) ) balance = yield self.account.get_balance(0) self.assertEqual(balance, 100) # claim names don't count towards balance @@ -57,7 +57,7 @@ class BasicAccountingTests(LedgerTestCase): tx = Transaction().add_outputs([Output.pay_pubkey_hash(100, hash160)]) yield self.ledger.db.save_transaction_io( - 'insert', tx, 1, True, address, hash160, '{}:{}:'.format(tx.id, 1) + 'insert', tx, True, address, hash160, '{}:{}:'.format(tx.id, 1) ) utxos = yield self.account.get_unspent_outputs() @@ -65,7 +65,7 @@ class BasicAccountingTests(LedgerTestCase): tx = Transaction().add_inputs([Input.spend(utxos[0])]) yield self.ledger.db.save_transaction_io( - 'insert', tx, 1, True, address, hash160, '{}:{}:'.format(tx.id, 1) + 'insert', tx, True, address, hash160, '{}:{}:'.format(tx.id, 1) ) balance = yield self.account.get_balance(0, include_claims=True) self.assertEqual(balance, 0)