Browse Source

Add test to fetch identity keyhash

master
juga 2 years ago
parent
commit
86d894feb3
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      tests/test_gnunet.py

+ 5
- 4
tests/test_gnunet.py View File

@ -38,10 +38,11 @@ def test_fetch_identity_hash():
assert 52 == len(r)
# def test_fetch_identity_name():
# REST_CLIENT = gnunetrest.GNUnetRest(HOST, PORT)
# REST_CLIENT.create_identity("alice")
# r = REST_CLIENT.fetch_identity_keyhash("alice")
def test_fetch_identity_name():
# First fetch the hash, since we don't know it.
keyhash = REST_CLIENT.fetch_identity_name("alice")
r = REST_CLIENT.fetch_identity_keyhash(keyhash)
assert "alice" == r
def test_change_identity_name():


Loading…
Cancel
Save