latest.ipv8.test.dht.test_community
Module Contents
Classes
Tests for the DHT Community. |
|
Fat tests for the DHT Community. |
- class latest.ipv8.test.dht.test_community.TestDHTCommunity
Bases:
latest.ipv8.test.dht.base.TestDHTBase
[latest.ipv8.dht.community.DHTCommunity
]Tests for the DHT Community.
- create_node(*args, **kwargs) latest.ipv8.test.mocking.ipv8.MockIPv8
Create a new node that runs the DHTCommunity with a curve25519 key.
- class latest.ipv8.test.dht.test_community.TestDHTCommunityXL
Bases:
latest.ipv8.test.dht.base.TestDHTBase
[latest.ipv8.dht.community.DHTCommunity
]Fat tests for the DHT Community.
- create_node(*args, **kwargs) latest.ipv8.test.mocking.ipv8.MockIPv8
Create a new node that runs the DHTCommunity with a curve25519 key.
- get_closest_nodes(node_id: bytes, max_nodes: int = 8) Iterable[latest.ipv8.test.mocking.ipv8.MockIPv8]
Get the nodes closest to a given node id.