tribler.test_unit.core.tunnel.test_discovery
Classes
A mocked TriblerTunnelCommunity. |
|
Tests for the GoldenRatioStrategy class. |
Module Contents
- class tribler.test_unit.core.tunnel.test_discovery.MockTriblerTunnelCommunity(settings: ipv8.community.CommunitySettings)
Bases:
ipv8.community.CommunityA mocked TriblerTunnelCommunity.
- settings_class
- community_id = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
- exit_candidates = []
- candidates
- send_introduction_request
- class tribler.test_unit.core.tunnel.test_discovery.TestGoldenRatioStrategy
Bases:
ipv8.test.base.TestBase[MockTriblerTunnelCommunity]Tests for the GoldenRatioStrategy class.
- test_remove_normal() None
If we have a normal node and an exit node, check if enforcing a ratio of 0.0 removes the normal node.