latest.ipv8.test.REST.test_identity_endpoint
Module Contents
Classes
Mock the OS file system using a dictionary as to mock files in a folder. |
|
Class for testing the REST API of the IdentityEndpoint. |
- class latest.ipv8.test.REST.test_identity_endpoint.MockPseudonymFolderManager
Bases:
latest.ipv8.attestation.communication_manager.PseudonymFolderManager
Mock the OS file system using a dictionary as to mock files in a folder.
- class latest.ipv8.test.REST.test_identity_endpoint.TestIdentityEndpoint
Bases:
latest.ipv8.test.REST.rest_base.RESTTestBase
Class for testing the REST API of the IdentityEndpoint.
- async setUp() None
Set up an identity community, memory identity manager and memory pseudonym folder manager.
- create_settings() list[latest.ipv8.attestation.identity.community.IdentitySettings]
Create settings for any node.
- async create_node(settings: list[latest.ipv8.community.CommunitySettings]) latest.ipv8.test.REST.rest_base.MockRestIPv8
We load each node i with a pseudonym my_peer{i}, which is the default IPv8 my_peer key.
- communication_manager(i: int) latest.ipv8.attestation.communication_manager.CommunicationManager
Shortcut to the communication manager of node i.
- async introduce_pseudonyms() None
Figure out the ephemeral communities of each node and introduce them to each other.
- async wait_for(*args: Any, **kwargs) Any
Fire a make request and keep repeating this request until a non-empty response is returned.
- async wait_for_requests(*args: Any, **kwargs) Any
Fire a make request and keep repeating this request until a response with the key “requests” is returned.
- async test_list_credentials_empty() None
Check that we retrieve credentials correctly, if none exist.