1
0

tests: rework testnet

Inheritance was overkill here, and now we can use inheritance for new functionality X
without having to create classes for all combinations of {X, is_testnet}.
This commit is contained in:
SomberNight
2023-02-18 06:44:30 +00:00
parent 72e1be6f5e
commit c5bdd5007c
12 changed files with 66 additions and 48 deletions

View File

@@ -10,10 +10,11 @@ from electrum.util import bfh
from electrum.lnutil import ShortChannelID, LnFeatures
from electrum import constants
from . import TestCaseForTestnet
from . import ElectrumTestCase
class TestLNMsg(TestCaseForTestnet):
class TestLNMsg(ElectrumTestCase):
TESTNET = True
def test_write_bigsize_int(self):
self.assertEqual(bfh("00"), write_bigsize_int(0))