diff options
author | selsta <selsta@sent.at> | 2021-12-04 01:37:48 +0100 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-12-14 23:35:48 +0100 |
commit | e9156d78a3c4a94a2c4c839f23eaa25fbc577dea (patch) | |
tree | 1b45b97e2ddcd9c2c6b6a64c343e51b8cffb2e07 /tests/functional_tests/uri.py | |
parent | Merge pull request #8097 (diff) | |
download | monero-e9156d78a3c4a94a2c4c839f23eaa25fbc577dea.tar.xz |
functional_tests: update uri test with external pid
Diffstat (limited to '')
-rwxr-xr-x | tests/functional_tests/uri.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/functional_tests/uri.py b/tests/functional_tests/uri.py index c193ac926..4d79c6b82 100755 --- a/tests/functional_tests/uri.py +++ b/tests/functional_tests/uri.py @@ -142,15 +142,11 @@ class URITest(): assert res.uri.recipient_name == utf8string[0] assert not 'unknown_parameters' in res or len(res.unknown_parameters) == 0 - res = wallet.make_uri(address = address, recipient_name = utf8string[0], tx_description = utf8string[1], amount = 1000000000000, payment_id = '1' * 64) - assert res.uri == 'monero:' + address + '?tx_payment_id=' + '1' * 64 + '&tx_amount=1.000000000000&recipient_name=' + quoted_utf8string[0] + '&tx_description=' + quoted_utf8string[1] - res = wallet.parse_uri(res.uri) - assert res.uri.address == address - assert res.uri.payment_id == '1' * 64 - assert res.uri.amount == 1000000000000 - assert res.uri.tx_description == utf8string[1] - assert res.uri.recipient_name == utf8string[0] - assert not 'unknown_parameters' in res or len(res.unknown_parameters) == 0 + # external payment ids are not supported anymore + ok = False + try: res = wallet.make_uri(address = address, recipient_name = utf8string[0], tx_description = utf8string[1], amount = 1000000000000, payment_id = '1' * 64) + except: ok = True + assert ok # spaces must be encoded as %20 res = wallet.make_uri(address = address, tx_description = ' ' + utf8string[1] + ' ' + utf8string[0] + ' ', amount = 1000000000000) |