3.0.ipv8.test.dht.test_discovery ================================ .. py:module:: 3.0.ipv8.test.dht.test_discovery Classes ------- .. autoapisummary:: 3.0.ipv8.test.dht.test_discovery.TestDHTDiscoveryCommunity Module Contents --------------- .. py:class:: TestDHTDiscoveryCommunity Bases: :py:obj:`3.0.ipv8.test.dht.base.TestDHTBase`\ [\ :py:obj:`3.0.ipv8.dht.discovery.DHTDiscoveryCommunity`\ ] Tests related to the DHTDiscoveryCommunity behaviors. .. py:method:: setUp() -> None Create two discovery communities, without token maintenance. .. py:method:: create_node(*args: Any, **kwargs) -> 3.0.ipv8.test.mocking.ipv8.MockIPv8 We only allow curve 25519 (libnacl) keys. .. py:method:: test_provider() -> None :async: Test the DHT provider (used to fetch peers in the hidden services). .. py:method:: test_provider_invalid_data() -> None :async: Test the DHT provider when invalid data arrives. .. py:method:: test_store_peer() -> None :async: Check if peers properly make themselves part of the DHT. .. py:method:: test_store_peer_fail() -> None :async: Check if the routing table does not update if our node id is already present. .. py:method:: test_connect_peer() -> None :async: Test if connecting to a peer based on a public key works. .. py:method:: test_connect_peer_fail() -> None :async: Check if a mid that is not in the routing table raises a DHTError on lookup. .. py:method:: test_ping_pong() -> None :async: Check if pinging between two particular nodes works. .. py:method:: test_ping_all() -> None Check if pinging all nodes - when necessary - works.