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

Method test_service_flags

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

Source from the content-addressed store, hash-verified

179 assert_raises_rpc_error(-24, "Node has not been added", self.nodes[0].getaddednodeinfo, '1.1.1.1')
180
181 def test_service_flags(self):
182 self.log.info("Test service flags")
183 self.nodes[0].add_p2p_connection(P2PInterface(), services=(1 << 4) | (1 << 63))
184 assert_equal(['UNKNOWN[2^4]', 'UNKNOWN[2^63]'], self.nodes[0].getpeerinfo()[-1]['servicesnames'])
185 self.nodes[0].disconnect_p2ps()
186
187 def test_getnodeaddresses(self):
188 self.log.info("Test getnodeaddresses")

Callers 1

run_testMethod · 0.95

Calls 5

P2PInterfaceClass · 0.90
assert_equalFunction · 0.90
infoMethod · 0.80
add_p2p_connectionMethod · 0.45
disconnect_p2psMethod · 0.45

Tested by

no test coverage detected