MCPcopy Create free account
hub / github.com/ElementsProject/elements / run_test

Method run_test

test/functional/rpc_net.py:51–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.supports_cli = False
50
51 def run_test(self):
52 # We need miniwallet to make a transaction
53 self.wallet = MiniWallet(self.nodes[0])
54 self.generate(self.wallet, 1)
55 # Get out of IBD for the minfeefilter and getpeerinfo tests.
56 self.generate(self.nodes[0], COINBASE_MATURITY + 1)
57
58 # By default, the test framework sets up an addnode connection from
59 # node 1 --> node0. By connecting node0 --> node 1, we're left with
60 # the two nodes being connected both ways.
61 # Topology will look like: node0 <--> node1
62 self.connect_nodes(0, 1)
63 self.sync_all()
64
65 self.test_connection_count()
66 self.test_getpeerinfo()
67 self.test_getnettotals()
68 self.test_getnetworkinfo()
69 self.test_getaddednodeinfo()
70 self.test_service_flags()
71 self.test_getnodeaddresses()
72 self.test_addpeeraddress()
73
74 def test_connection_count(self):
75 self.log.info("Test getconnectioncount")

Callers

nothing calls this directly

Calls 12

test_connection_countMethod · 0.95
test_getpeerinfoMethod · 0.95
test_getnettotalsMethod · 0.95
test_getnetworkinfoMethod · 0.95
test_getaddednodeinfoMethod · 0.95
test_service_flagsMethod · 0.95
test_getnodeaddressesMethod · 0.95
test_addpeeraddressMethod · 0.95
MiniWalletClass · 0.90
connect_nodesMethod · 0.80
generateMethod · 0.45
sync_allMethod · 0.45

Tested by

no test coverage detected