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")
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()
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")
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")