示例#1
0
 def test_create_factory(self):
     factory = P2PFactory(buffered_chain=None,
                          sync_state=None,
                          qrl_node=None)
     self.assertEqual(
         factory.protocol, P2PProtocol,
         "Factory has not been assigned the expected protocol")
示例#2
0
文件: qrlnode.py 项目: kstuart/QRL
    def start_listening(self):
        self._p2pfactory = P2PFactory(
            chain_manager=self._chain_manager,
            sync_state=self.sync_state,
            qrl_node=self)  # FIXME: Try to avoid cycle references

        self._p2pfactory.start_listening()
示例#3
0
 def test_create_factory(self):
     factory = P2PFactory(chain_manager=None,
                          sync_state=None,
                          qrl_node=None)
     self.assertEqual(
         P2PProtocol, factory.protocol,
         "Factory has not been assigned the expected protocol")
示例#4
0
 def test_create_factory(self):
     factory = P2PFactory(chain=None, nodeState=None, pos=None)
     self.assertEqual(
         factory.protocol, P2PProtocol,
         "Factory has not been assigned the expected protocol")