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

Function test_feature_set

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

Source from the content-addressed store, hash-verified

2412@pytest.mark.openchannel('v1')
2413@pytest.mark.openchannel('v2')
2414def test_feature_set(node_factory):
2415 plugin = os.path.join(os.path.dirname(__file__), 'plugins/show_feature_set.py')
2416 l1 = node_factory.get_node(options={"plugin": plugin})
2417
2418 fs = l1.rpc.call('getfeatureset')
2419
2420 assert fs['init'] == expected_peer_features()
2421 assert fs['node'] == expected_node_features()
2422 assert fs['channel'] == expected_channel_features()
2423 assert 'invoice' in fs
2424
2425
2426def 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