|
|
@ -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(): |
|
|
|