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

Function match

tests/test_invoices.py:645–649  ·  view source on GitHub ↗
(node, query, invoice)

Source from the content-addressed store, hash-verified

643 invoices = [l1.rpc.invoice(42, 'label{}'.format(i), 'desc') for i in range(10)]
644
645 def match(node, query, invoice):
646 r1 = l1.rpc.listinvoices(**query)['invoices']
647 assert len(r1) == 1
648 assert r1[0]['payment_hash'] == inv['payment_hash']
649 assert r1[0]['bolt11'] == inv['bolt11']
650
651 for i, inv in enumerate(invoices):
652 match(l1, {'label': "label{}".format(i)}, inv)

Callers 1

test_listinvoices_filterFunction · 0.85

Calls 1

listinvoicesMethod · 0.45

Tested by

no test coverage detected