forked from LBRYCommunity/lbry-sdk
test for Transaction.liquidate
This commit is contained in:
parent
4a0d461446
commit
c9c3585e1e
1 changed files with 9 additions and 0 deletions
|
@ -44,3 +44,12 @@ class BasicTransactionTests(IntegrationTestCase):
|
|||
all_balances = await d2f(self.manager.get_balance())
|
||||
self.assertIn(self.ledger.get_id(), all_balances)
|
||||
self.assertEqual(round(all_balances[self.ledger.get_id()]/COIN, 1), 9.9)
|
||||
|
||||
utxos = await d2f(self.account.get_unspent_outputs())
|
||||
tx = await d2f(self.ledger.transaction_class.liquidate(
|
||||
[utxos[0]], [account1], account1
|
||||
))
|
||||
await self.broadcast(tx)
|
||||
await self.on_transaction(tx) # mempool
|
||||
await self.blockchain.generate(1)
|
||||
await self.on_transaction(tx) # confirmed
|
||||
|
|
Loading…
Reference in a new issue