3.0.ipv8.test.REST.test_identity_endpoint
Classes
Module Contents
- class 3.0.ipv8.test.REST.test_identity_endpoint.MockPseudonymFolderManager
Bases:
3.0.ipv8.attestation.communication_manager.PseudonymFolderManagerMock the OS file system using a dictionary as to mock files in a folder.
- class 3.0.ipv8.test.REST.test_identity_endpoint.TestIdentityEndpoint(methodName: str = 'runTest')
Bases:
3.0.ipv8.test.base.TestBase[3.0.ipv8.attestation.identity.community.IdentityCommunity]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_node(settings: 3.0.ipv8.community.CommunitySettings | None = None, create_dht: bool = False, enable_statistics: bool = False) 3.0.ipv8.test.mocking.ipv8.MockIPv8
We load each node i with a pseudonym my_peer{i}, which is the default IPv8 my_peer key.
- rest_ep(i: int) 3.0.ipv8.REST.identity_endpoint.IdentityEndpoint
Shortcut to the REST endpoint of node i.
- communication_manager(i: int) 3.0.ipv8.attestation.communication_manager.CommunicationManager
Shortcut to the communication manager of node i.
- async clear_pseudonyms() None
We set up our tests with one pseudonym per peer by default: get rid of them.
- async introduce_pseudonyms() None
Figure out the ephemeral communities of each node and introduce them to each other.
- async test_list_credentials_empty() None
Check that we retrieve credentials correctly, if none exist.