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

Function test_unicode_rpc

tests/test_misc.py:2840–2848  ·  view source on GitHub ↗
(node_factory, executor, bitcoind)

Source from the content-addressed store, hash-verified

2838
2839
2840def test_unicode_rpc(node_factory, executor, bitcoind):
2841 node = node_factory.get_node()
2842 desc = "Some candy 🍬 and a nice glass of milk 🥛."
2843
2844 node.rpc.invoice(amount_msat=42, label=desc, description=desc)
2845 invoices = node.rpc.listinvoices()['invoices']
2846 assert(len(invoices) == 1)
2847 assert(invoices[0]['description'] == desc)
2848 assert(invoices[0]['label'] == desc)
2849
2850
2851@unittest.skipIf(VALGRIND, "Testing pyln doesn't exercise anything interesting in the c code.")

Callers

nothing calls this directly

Calls 3

get_nodeMethod · 0.45
invoiceMethod · 0.45
listinvoicesMethod · 0.45

Tested by

no test coverage detected