Example #1
0
    def setup(self):
        time.mock_mode()

        self.controller = controller.Controller(
            tc.CLIENT_ADDR, "test_logs/state.dat", routing_m_mod, lookup_m_mod, exp_m_mod, None
        )
        self.my_id = self.controller._my_id
        self.querier2 = querier.Querier()  # self.my_id)
Example #2
0
    def setup(self):
        time.mock_mode()

        self.controller = controller.Controller(PYMDHT_VERSION, tc.CLIENT_NODE,
                                                'test_logs/state.dat',
                                                routing_m_mod, lookup_m_mod,
                                                exp_m_mod, None)
        self.my_id = self.controller._my_id
        self.querier2 = querier.Querier()  #self.my_id)
        self.servers_msg_f = message.MsgFactory(PYMDHT_VERSION, tc.SERVER_ID)
Example #3
0
 def setup(self):
     time.mock_mode()
     self.main_loop_call_counter = 0
     self.callback_values = []
     self.datagrams_received = []
     
     self.main_loop_delay = MAIN_LOOP_DELAY
     self.reactor = ThreadedReactor(self._main_loop,
                                    tc.CLIENT_PORT,
                                    self._on_datagram_received,
                                    task_interval=tc.TASK_INTERVAL)
     self.reactor.s = _SocketMock()
Example #4
0
 def setup(self):
     time.mock_mode()
     
     self.controller = controller.Controller(PYMDHT_VERSION,
                                             tc.CLIENT_NODE,
                                             'test_logs/state.dat',
                                             routing_m_mod,
                                             lookup_m_mod,
                                             exp_m_mod,
                                             None)
     self.my_id = self.controller._my_id
     self.querier2 = querier.Querier()#self.my_id)
     self.servers_msg_f = message.MsgFactory(PYMDHT_VERSION, tc.SERVER_ID)
Example #5
0
 def setup(self):
     time.mock_mode()
     self.querier = Querier()  #tc.CLIENT_ID)
Example #6
0
 def setup(self):
     time.mock_mode()
     self.querier = Querier()#tc.CLIENT_ID)
Example #7
0
 def setup(self):
     time.mock_mode()
Example #8
0
 def setup(self):
     time.mock_mode()
Example #9
0
 def setup(self):
     time.mock_mode()
     self.t = tracker.Tracker(VALIDITY_PERIOD, CLEANUP_COUNTER)
Example #10
0
 def setup(self):
     time.mock_mode()
     self.t = tracker.Tracker(VALIDITY_PERIOD, CLEANUP_COUNTER)