latest.ipv8.test.attestation.wallet.test_attestation_community

Module Contents

Classes

TestCommunity

Tests related to the attestation community.

class latest.ipv8.test.attestation.wallet.test_attestation_community.TestCommunity(methodName: str = 'runTest')

Bases: latest.ipv8.test.base.TestBase[latest.ipv8.attestation.wallet.community.AttestationCommunity]

Tests related to the attestation community.

private_key
setUp() None

Create two nodes.

create_node(settings: latest.ipv8.community.CommunitySettings | None = None, create_dht: bool = False, enable_statistics: bool = False) latest.ipv8.test.base.MockIPv8

Create a curve25519 peer with a memory database.

async test_request_attestation_callback() None

Check if the request_attestation callback is correctly called.

async test_request_attestation_twice_callback() None

Check if the request_attestation callback is correctly called twice in a row.

async test_request_attestation_callback_metadata() None

Check if the request_attestation callback is correctly called with metadata.

async test_request_attestation() None

Check if the request_attestation callback is correctly called.

async test_request_attestation_big() None

Check if the request_attestation callback is correctly called for id_metadata_big.

async test_request_attestation_range() None

Check if the request_attestation callback is correctly called for id_metadata_range_18plus.

async test_verify_attestation() None

Check if an attestation can be verified.

async test_reqandverif_attestation() None

Check if requesting and verifying an attestation works.

async test_verify_attestation_big() None

Check if an attestation can be verified for id_metadata_big.

async test_verify_attestation_range() None

Check if an attestation can be verified for id_metadata_range_18plus.

test_load_key() None

Check if we can load the community correctly after shut down.