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

Function test_feature_set

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

Source from the content-addressed store, hash-verified

1820@pytest.mark.openchannel('v1')
1821@pytest.mark.openchannel('v2')
1822def test_feature_set(node_factory):
1823 plugin = os.path.join(os.path.dirname(__file__), 'plugins/show_feature_set.py')
1824 l1 = node_factory.get_node(options={"plugin": plugin})
1825
1826 fs = l1.rpc.call('getfeatureset')
1827
1828 assert fs['init'] == expected_peer_features()
1829 assert fs['node'] == expected_node_features()
1830 assert fs['channel'] == expected_channel_features()
1831 assert 'invoice' in fs
1832
1833
1834def 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