Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/h/DHTBot-HEAD/dhtbot/test/protocols/test_krpc_iterator.py   DHTBot(Download)
from dhtbot.contact import Node
from dhtbot.kademlia.routing_table import TreeRoutingTable
from dhtbot.protocols.krpc_iterator import KRPC_Iterator, IterationError
# Imported so that the reactor can be patched out
from dhtbot.protocols import krpc_sender
    def setUp(self):
        self.monkey_patcher = MonkeyPatcher()
        self.monkey_patcher.addPatch(krpc_sender, "reactor", HollowReactor())
        self.monkey_patcher.patch()
        self.k_iter = KRPC_Iterator()