pytest: Add a test for plugin featurebits

This commit is contained in:
Christian Decker
2020-01-29 22:33:10 +01:00
committed by Rusty Russell
parent a13591400a
commit 966ac95098
4 changed files with 55 additions and 2 deletions

14
tests/plugins/feature-test.py Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
from pyln.client import Plugin
# Register a different set feature of feature bits for each location so we can
# later check that they are being passed correctly.
plugin = Plugin(
init_features=1 << 101,
node_features=1 << 103,
invoice_features=1 << 105,
)
plugin.run()