3.0.ipv8.test.peerdiscovery.test_churn ====================================== .. py:module:: 3.0.ipv8.test.peerdiscovery.test_churn Classes ------- .. autoapisummary:: 3.0.ipv8.test.peerdiscovery.test_churn.TestChurn Module Contents --------------- .. py:class:: TestChurn(methodName: str = 'runTest') Bases: :py:obj:`3.0.ipv8.test.base.TestBase` Tests for the churn strategy. .. py:method:: setUp() -> None Create two nodes that are not managed by TestBase. .. py:method:: tearDown() -> None :async: We made our own unmanaged overlays: tear them down. .. py:method:: test_keep_reachable() -> None :async: Check if we don't remove reachable nodes. .. py:method:: test_remove_unreachable() -> None :async: Check if we remove unreachable nodes. .. py:method:: test_no_nodes() -> None :async: Nothing should happen if we have no nodes to check. .. py:method:: test_ping_timeout() -> None :async: Don't overload inactive nodes with pings, send it once within some timeout. .. py:method:: test_ping_timeout_resend() -> None :async: Don't overload inactive nodes with pings, send it again after some timeout.