Skip to content

Commit

Permalink
feat: additional in_memory wallet test
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Peltier <micah6_8@yahoo.com>
  • Loading branch information
mepeltier committed Jun 29, 2024
1 parent f917714 commit eed6981
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aries_cloudagent/wallet/tests/test_in_memory_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,3 +549,13 @@ async def test_set_did_endpoint_x_not_sov(self, wallet: InMemoryWallet):
assert "Setting DID endpoint is only allowed for did:sov DIDs" in str(
context.value
)

@pytest.mark.asyncio
async def test_assign_and_get_by_kid(self, wallet: InMemoryWallet):

key = await wallet.create_key(ED25519)

await wallet.assign_kid_to_key(key.verkey, "test_kid")

return_key = await wallet.get_key_by_kid("test_kid")
assert return_key.verkey == key.verkey

0 comments on commit eed6981

Please sign in to comment.