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)
|
await self.ledger.release_outputs(utxos)
|
||||||
|
|
||||||
# everything: insufficient funds
|
# everything: insufficient funds
|
||||||
try:
|
with self.assertRaises(lbry.error.InsufficientFundsError):
|
||||||
tx = await self.tx(
|
tx = await self.tx(
|
||||||
[], # inputs
|
[], # inputs
|
||||||
[self.txo(19.93)], # outputs
|
[self.txo(19.93)], # outputs
|
||||||
everything=True
|
everything=True
|
||||||
)
|
)
|
||||||
except lbry.error.InsufficientFundsError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
self.fail("expected InsufficientFunds exception")
|
|
||||||
|
|
||||||
await self.ledger.release_outputs(utxos)
|
await self.ledger.release_outputs(utxos)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue