3.0.ipv8.test.attestation.identity.test_identity ================================================ .. py:module:: 3.0.ipv8.test.attestation.identity.test_identity Classes ------- .. autoapisummary:: 3.0.ipv8.test.attestation.identity.test_identity.TestIdentityCommunity Module Contents --------------- .. py:class:: TestIdentityCommunity(methodName: str = 'runTest') Bases: :py:obj:`3.0.ipv8.test.base.TestBase`\ [\ :py:obj:`3.0.ipv8.attestation.identity.community.IdentityCommunity`\ ] Tests related to the identity community's behaviors. .. py:attribute:: FAKE_HASH .. py:method:: setUp() -> None Create two nodes. .. py:method:: create_node(settings: 3.0.ipv8.community.CommunitySettings | None = None, create_dht: bool = False, enable_statistics: bool = False) -> 3.0.ipv8.test.base.MockIPv8 Use a memory-based identity manager for each community. .. py:method:: test_advertise() -> None :async: Check if a node can construct an advertisement for his attested attribute. .. py:method:: test_advertise_twice() -> None :async: Check if a node can construct two attributes. .. py:method:: test_advertise_big() -> None :async: Check if a node can construct an advertisement for his attested attribute, having more than 32 attributes. .. py:method:: test_advertise_metadata() -> None :async: Check if a node can construct an advertisement for his attested attribute with metadata. .. py:method:: test_advertise_metadata_reject() -> None :async: Check if a node cannot construct an advertisement for his attested attribute with wrong metadata. .. py:method:: test_advertise_reject_hash() -> None :async: Check if unknown hashes are not signed. .. py:method:: test_advertise_reject_public_key() -> None :async: Check if we don't sign correct hashes for the wrong peer. .. py:method:: test_advertise_reject_old() -> None :async: Check if we don't sign old attestations. .. py:method:: test_advertise_reject_wrong_name() -> None :async: Check if we don't sign attestations with incorrect metadata.