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

All Samples(12)  |  Call(11)  |  Derive(0)  |  Import(1)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/app.py   Dandelion-Message-Service(Download)
from dandelion.network import Server
from dandelion.synchronizer import Synchronizer
from dandelion.discoverer import Discoverer
from dandelion.ui import UI
#from dandelion.gui.gui import GUI
                              self._config_manager.identity)
 
        self._discoverer = Discoverer(self._config_manager.discoverer_config, server_config=self._config_manager.server_config)
 
        self._synchronizer = Synchronizer(self._discoverer,

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/service_test.py   Dandelion-Message-Service(Download)
    def test_start_stop(self):
        cfg_mgr = dandelion.config.ConfigManager(self.TEST_FILE)
        d = dandelion.discoverer.Discoverer(cfg_mgr.discoverer_config, server_config=cfg_mgr.server_config)
        self.assertFalse(d.running)
        d.start()
    def test_add_remove(self):
        cfg_mgr = dandelion.config.ConfigManager(self.TEST_FILE)
        d = dandelion.discoverer.Discoverer(cfg_mgr.discoverer_config, server_config=cfg_mgr.server_config)
 
        # Initially empty
    def test_requst_release(self):
        cfg_mgr = dandelion.config.ConfigManager(self.TEST_FILE)
        d = dandelion.discoverer.Discoverer(cfg_mgr.discoverer_config, server_config=cfg_mgr.server_config)
 
        # No nodes to acquire yet...
    def test_pining(self):
        cfg_mgr = dandelion.config.ConfigManager(self.TEST_FILE)
        d = dandelion.discoverer.Discoverer(cfg_mgr.discoverer_config, server_config=cfg_mgr.server_config)
 
        # Not pinned (default)
    def test_acquire_order(self):
        cfg_mgr = dandelion.config.ConfigManager(self.TEST_FILE)
        d = dandelion.discoverer.Discoverer(cfg_mgr.discoverer_config, server_config=cfg_mgr.server_config)
 
        d.add_node("127.0.0.1", 1)