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

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

src/d/h/DHTBot-HEAD/dhtbot/test/protocols/test_krpc_sender.py   DHTBot(Download)
 
        # Pass in the krpc
        k_messenger.datagramReceived(krpc_coder.encode(krpc), address)
        self.assertEquals(num_calls, counter.count)
 
        response = query.build_response()
        response._from = 9
        k_messenger.datagramReceived(krpc_coder.encode(response), address)
        _restore_reactor()
        self.assertEquals(1, counter.count)