Skip to content

Commit

Permalink
df-tests: test_feature_set
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed Dec 22, 2020
1 parent 0c845ca commit 204f2a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,8 +1620,12 @@ def test_feature_set(node_factory):
l1 = node_factory.get_node(options={"plugin": plugin})

fs = l1.rpc.call('getfeatureset')
assert fs['init'] == expected_peer_features()
assert fs['node'] == expected_node_features()
extra = []
if l1.config('experimental-dual-fund'):
extra.append(223)

assert fs['init'] == expected_peer_features(extra=extra)
assert fs['node'] == expected_node_features(extra=extra)
assert fs['channel'] == expected_channel_features()
assert 'invoice' in fs

Expand Down

0 comments on commit 204f2a5

Please sign in to comment.