From 334d3f2818ccfa65266dda3c25bdd78844255272 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Sun, 25 Aug 2019 06:51:31 +0000 Subject: [PATCH] Use NamedTuple notation for TxOutput in test_lnchannel This makes the code more resilient in case additional members are added to TxOutput later. --- electrum/tests/test_lnchannel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/tests/test_lnchannel.py b/electrum/tests/test_lnchannel.py index 10501b417..36794f32c 100644 --- a/electrum/tests/test_lnchannel.py +++ b/electrum/tests/test_lnchannel.py @@ -173,8 +173,8 @@ class TestChannel(unittest.TestCase): maxDiff = 999 def assertOutputExistsByValue(self, tx, amt_sat): - for typ, scr, val in tx.outputs(): - if val == amt_sat: + for o in tx.outputs(): + if o.value == amt_sat: break else: self.assertFalse()