mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pytest: Add failing test for unicode in JSON-RPC through pylightning
This commit is contained in:
parent
895e06122c
commit
dc1f27c0b3
@ -1998,3 +1998,15 @@ def test_new_node_is_mainnet(node_factory):
|
|||||||
assert not os.path.isfile(os.path.join(basedir, "hsm_secret"))
|
assert not os.path.isfile(os.path.join(basedir, "hsm_secret"))
|
||||||
assert not os.path.isfile(os.path.join(netdir, "lightningd-bitcoin.pid"))
|
assert not os.path.isfile(os.path.join(netdir, "lightningd-bitcoin.pid"))
|
||||||
assert os.path.isfile(os.path.join(basedir, "lightningd-bitcoin.pid"))
|
assert os.path.isfile(os.path.join(basedir, "lightningd-bitcoin.pid"))
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.xfail(strict=True)
|
||||||
|
def test_unicode_rpc(node_factory):
|
||||||
|
node = node_factory.get_node()
|
||||||
|
desc = "Some candy 🍬 and a nice glass of milk 🥛."
|
||||||
|
|
||||||
|
node.rpc.invoice(msatoshi=42, label=desc, description=desc)
|
||||||
|
invoices = node.rpc.listinvoices()['invoices']
|
||||||
|
assert(len(invoices) == 1)
|
||||||
|
assert(invoices[0]['description'] == desc)
|
||||||
|
assert(invoices[0]['label'] == desc)
|
||||||
|
Loading…
Reference in New Issue
Block a user