You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
414 B
15 lines
414 B
5 years ago
|
#! /usr/bin/python3
|
||
|
from pyln.proto.message import MessageNamespace
|
||
5 years ago
|
import pyln.spec.bolt7 as bolt7
|
||
5 years ago
|
|
||
|
|
||
|
# FIXME: more tests
|
||
|
def test_bolt_07_csv():
|
||
|
MessageNamespace(bolt7.csv)
|
||
|
|
||
|
|
||
|
def test_bolt_07_subtypes():
|
||
|
for t in ['{timestamp_node_id_1=1,timestamp_node_id_2=2}']:
|
||
|
vals, _ = bolt7.channel_update_timestamps.val_from_str(t)
|
||
|
assert bolt7.channel_update_timestamps.val_to_str(vals, None) == t
|