Browse Source

Add test to list all namestore entries

master
juga 1 year ago
parent
commit
ff81c997a4
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      tests/test_gnunet.py

+ 8
- 0
tests/test_gnunet.py View File

@ -78,6 +78,14 @@ def test_add_namestore_entry():
assert r is True
def test_list_namestore_entry():
r = REST_CLIENT.list_namestore_entries("alice")
assert 1 == len(r)
assert 'pepfoundation' == r[0]['record_name']
# There could be more than one `RecordData`, so iterate through them.
assert '95.128.36.146' in [record['value'] for record in r[0]['data']]
def test_change_namestore_entry():
assert REST_CLIENT.change_namestore_entry(
"alice",


Loading…
Cancel
Save