MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_feature_set

Function test_feature_set

tests/test_plugin.py:2298–2307  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

2296@pytest.mark.openchannel('v1')
2297@pytest.mark.openchannel('v2')
2298def test_feature_set(node_factory):
2299 plugin = os.path.join(os.path.dirname(__file__), 'plugins/show_feature_set.py')
2300 l1 = node_factory.get_node(options={"plugin": plugin})
2301
2302 fs = l1.rpc.call('getfeatureset')
2303
2304 assert fs['init'] == expected_peer_features()
2305 assert fs['node'] == expected_node_features()
2306 assert fs['channel'] == expected_channel_features()
2307 assert 'invoice' in fs
2308
2309
2310def test_replacement_payload(node_factory):

Callers

nothing calls this directly

Calls 6

expected_peer_featuresFunction · 0.90
expected_node_featuresFunction · 0.90
joinMethod · 0.80
get_nodeMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected