Simplify InsufficientFundsError testcase.
This commit is contained in:
parent
4a1b1da8f6
commit
07e8ab37e9
1 changed files with 1 additions and 5 deletions
|
@ -617,16 +617,12 @@ class TransactionIOBalancing(AsyncioTestCase):
|
|||
await self.ledger.release_outputs(utxos)
|
||||
|
||||
# everything: insufficient funds
|
||||
try:
|
||||
with self.assertRaises(lbry.error.InsufficientFundsError):
|
||||
tx = await self.tx(
|
||||
[], # inputs
|
||||
[self.txo(19.93)], # outputs
|
||||
everything=True
|
||||
)
|
||||
except lbry.error.InsufficientFundsError:
|
||||
pass
|
||||
else:
|
||||
self.fail("expected InsufficientFunds exception")
|
||||
|
||||
await self.ledger.release_outputs(utxos)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue