3.0.ipv8.test.peerdiscovery.test_random_discovery ================================================= .. py:module:: 3.0.ipv8.test.peerdiscovery.test_random_discovery Classes ------- .. autoapisummary:: 3.0.ipv8.test.peerdiscovery.test_random_discovery.TestRandomWalk Module Contents --------------- .. py:class:: TestRandomWalk(methodName: str = 'runTest') Bases: :py:obj:`3.0.ipv8.test.base.TestBase` Tests related to the random walker. .. py:method:: setUp() -> None Set up three nodes that are not managed by TestBase. .. py:method:: tearDown() -> None :async: We made our own unmanaged overlays: tear them down. .. py:method:: test_take_step() -> None :async: Check if we will walk to a random other node. Unit test network layout: NODE0 <-> NODE1 <-> NODE2 .. py:method:: test_take_step_into() -> None :async: Check if we will walk to an introduced node. Unit test network layout: NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2 .. py:method:: test_fail_step_into() -> None :async: Check if we drop an unreachable introduced node. Unit test network layout: NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2 .. py:method:: test_retry_step_into() -> None :async: Check if we don't drop an introduced node immediately. Unit test network layout: NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2