예제 #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)
예제 #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)
예제 #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()
예제 #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)
예제 #5
0
 def setup(self):
     time.mock_mode()
     self.querier = Querier()  #tc.CLIENT_ID)
예제 #6
0
 def setup(self):
     time.mock_mode()
     self.querier = Querier()#tc.CLIENT_ID)
예제 #7
0
 def setup(self):
     time.mock_mode()
예제 #8
0
 def setup(self):
     time.mock_mode()
예제 #9
0
 def setup(self):
     time.mock_mode()
     self.t = tracker.Tracker(VALIDITY_PERIOD, CLEANUP_COUNTER)
예제 #10
0
 def setup(self):
     time.mock_mode()
     self.t = tracker.Tracker(VALIDITY_PERIOD, CLEANUP_COUNTER)